3 ms·
To be cryptographically secure, it must be unguessable. That's a higher bar than random, because many random number generators are guessable (i.e. completely pr
by JoeAltmaier 11y ago
To be cryptographically secure, it must be unguessable. That's a higher bar than random, because many random number generators are guessable (i.e. completely predictable).
- marcosdumay 11y agoLinux /dev/urandom is cryptographically secure. The library you are using for creating those UUIDs must have some bug. My guess is they share the same generator for all threads on each machine.
- JoeAltmaier 11y agoFrom Wikipedia : "some people claim /dev/urandom as not recommended[who?] for the generation of long-term cryptographic keys"
- marcosdumay 11y agoIt's manpage also says the same. It is a cryptographically secure PRNG, but during a small time in system start up, it may not be correctly seeded. If you need long term keys, it may be better to get some 256 bits from /dev/random before using /dev/urandom.
- dchest 11y agoThat's a bad advice. http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ http://sockpuppet.org/blog/2014/02/25/safely-generate-random...