apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Hudson <ghud...@MIT.EDU>
Subject Re: UUID generation stomps srand/rand seed
Date Tue, 18 Apr 2006 16:49:22 GMT
On Tue, 2006-04-18 at 09:43 +0100, Joe Orton wrote:
> That code is only a fallback for when no external/OS-provided UUID 
> generation is used, and apr_generate_random_bytes() is not available or 
> fails.  Any modern Linux/BSD platform will satisfy the first constraint 
> (with APR 1.0.3 and later), and the latter covers most of the rest.

Ahh, thanks for clarifying.  That also explains why I had memories
of /dev/random exhaustion issues resulting from generating lots of

So in theory, the code should probably be changed to use an APR-internal
PRNG and not stomp on global state, but it's a low-priority issue.

View raw message