Date: Mon, 23 Jun 2014 22:29:03 +0200 From: Joerg Sonnenberger <jo...@britannica.bec.de>
On Mon, Jun 23, 2014 at 07:46:15PM +0000, Taylor R Campbell wrote: > Read from /dev/urandom. It scales better in multithreaded programs, > avoids fork issues (hanging, duplicate key streams, disclosure of > parents' secrets in unprivileged children), and works on ~any Unix, > not just on OpenBSD and whoever else parroted arc4random. Eh, no. That's a lot worse. The system call overhead alone is orders of magnitnude slower rthan any locking will ever be. That's completely ignoring the need for a file descriptor or /dev. That's why the rest of my message, which you snipped, was all about dealing with higher-throughput needs.