News for hackers. Stuff that matters.
Re:There's Math.random(), and then there's Math.random() by jsheard on Friday February 07, 2025 @06:45AM (#42971551)
> I learned in college that most random number generators use the current timestamp to generate a pseudo-random number.

Most modern platforms provide an easy way to get cryptographically strong random numbers, so when seeding a non-cryptographic generator nowadays you may as well seed it with strong randomness rather than using a kludge like the current time.

There are no comments on this comment yet.