apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject Re: /dev/urandom vs /dev/random [was Re: 2.0.36 hangs on linux on startup]
Date Sun, 26 May 2002 15:59:34 GMT
On Sun, 26 May 2002, Ben Laurie wrote:

> >>3) open /dev/random in non-blocking mode and defer EAGAIN reads
> >>   until later (read it at startup; if it would block, try again when
> >>   the entropy is actually needed, failing if it isn't ready by then
> >>     -- no idea if this would even work).
>
> Grr. We keep going around this loop - there isn't a "one size fits all"
> answer to the problem.

Okay, fair enough.  Patch withdrawn.  What do you think of option #3?
Perhaps not fail, but defer the blocking read?

What about a --with-devrandom=<path> option for people who do want to go
the /dev/urandom route?

--Cliff


Mime
View raw message