News for hackers. Stuff that matters.
Re:Russhian Roulette: 1/6 chance of posting your SSH private... by nassimm on Saturday January 28, 2023 @08:13AM (#34557313)
Math.random() generates a decimal that can be 0 but is less than 1, so when multiplied by 6 the range is 0-5.99999, which is then rounded down.

There are no comments on this comment yet.