Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/lib/libc
Date: Mon, 23 Jun 2014 22:29:03 +0200
From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
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.
Home |
Main Index |
Thread Index |
Old Index