Scoopfeeds — Intelligent news, curated.
computer-science

Myths about /dev/urandom

Hacker News · May 14, 2026, 11:26 AM

Key takeaways

  • There are a few things about /dev/urandom and /dev/random that are repeated again and again.
  • Always use /dev/random for cryptographic purposes.
  • Fact: /dev/urandom is the preferred source of cryptographic randomness on UNIX-like systems.

There are a few things about /dev/urandom and /dev/random that are repeated again and again. Still they are false.

/dev/urandom is insecure. Always use /dev/random for cryptographic purposes.

Fact: /dev/urandom is the preferred source of cryptographic randomness on UNIX-like systems.

Article preview — originally published by Hacker News. Full story at the source.
Read full story on Hacker News → More top stories
Aggregated and edited by the Scoop newsroom. We surface news from Hacker News alongside other reporting so you can compare coverage in one place. Editorial policy · Corrections · About Scoop