[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: Pre-seeding the random number generator
From: |
Karl Berry |
Subject: |
Re: feature request: Pre-seeding the random number generator |
Date: |
Tue, 31 Oct 2006 19:28:30 -0600 |
> with a read from /dev/random but it's not portable on all architectures
I believe reading from /dev/random can block. (As mentioned in
Perl_seed(pTHX) you kindly pointed us to :). There's a non-blocking
/dev/urandom, even less portable, but useful where it exists.
There has been tons of research on this, and plenty of implementations
too. But just using that Perl code, suitably munged, seems like the
simplest thing to do :).
I wonder whether GPL Ghostscript has already done something along these
lines, or intentionally not implemented it for some good reason, or
something. Isn't there a public bug database or something?
Best,
Karl