Can we rely on /dev/urandom on UNIX machines if we need a cryptographically secure random generator?

  • Yes, that's the purpouse of /dev/random and /dev/urandom – Mr. E Dec 26 '16 at 21:12

From This Site:

Both /dev/urandom and /dev/random are using the exact same CSPRNG (a cryptographically secure pseudorandom number generator). They only differ in very few ways that have nothing to do with “true” randomness.

  • 2
    You beat me to it, that site is the default reference for confusion about /dev/urandom. – Arminius Dec 26 '16 at 21:19
  • I laughed when I read your comment. I often have people beating me to the punch, but rarely do it to others .. Maybe I'm slower than most ... – user34445 Dec 26 '16 at 21:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.