Hacker News new | ask | show | jobs
by Rafert 3618 days ago

  Majority of web pages and blog posts I’ve read suggests to use /dev/urandom
Even the man page was updated to state that this is what you want unless under specific circumstances:

  The /dev/random interface is considered a legacy interface, and
  /dev/urandom is preferred and sufficient in all use cases, with the
  exception of applications which require randomness during early boot
  time; for these applications, getrandom(2) must be used instead,
  because it will block until the entropy pool is initialized.