/dev/random for FreeBSD [was: Re: /dev/random for Linux]

Perry E. Metzger perry at piermont.com
Tue Oct 31 17:49:27 PST 1995



Tom Weinstein writes:
> One problem with this scheme is that if multiple processes have
> /dev/random open you can block unexpectedly.  If I try to avoid blocking
> by first checking if entropy is available there's a race condition if
> another process reads from the device.  Is there another way to avoid
> blocking?

Yeah. Use non-blocking I/O. Its in every version of Unix I've touched
for over a decade.

.pm






More information about the cypherpunks-legacy mailing list