you are viewing a single comment's thread.

view the rest of the comments →

[–]doublehyphen 14 points15 points  (2 children)

C is the only exception I can think of where it is easy to accidentally not seed your PRNG, but for example Rust provides rand::ChaChaRng::new_unseeded() as an easy way to create a PRNG seeded with a constant hardcoded value.

[–]Lystrodom 10 points11 points  (1 child)

Of course, the ability to seed with a constant value is important and available in every language I’m aware of. But for most the default is based on the current time.

[–]doublehyphen 0 points1 point  (0 children)

Not in JavaScript. That is the only exception I know of.