4 ms·
1. The official man page. The /dev/random interface is considered a legacy interface, and /dev/urandom is preferred and sufficient in all use cases, with the
by segfaultbuserr 8y ago
1. The official man page.
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.
2. https://www.2uo.de/myths-about-urandom/ https://www.2uo.de/myths-about-urandom/
- tomjakubowski 8y agoNot that I disagree with you, but which are the official man pages for /dev/urandom? It's my recollection that the advice therein varies from OS to OS.
- segfaultbuserr 8y agoThis page is part of release 4.16 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/ https://www.kernel.org/doc/man-pages/. And only Linux has /dev/urandom.
- deleted 8y ago[deleted]
- floatboth 8y agoBSDs (incl. macOS) have /dev/urandom, but it's the same thing as /dev/random. Both don't ever block after they've been filled initially at boot time.