Subject: Re: creating random files
To: Manuel Bouyer <email@example.com>
From: Michael Graff <firstname.lastname@example.org>
Date: 03/08/1999 16:45:49
Manuel Bouyer <email@example.com> writes:
> Ok, but ... what's the difference between /dev/random and /dev/urandom ?
> I counldn't find a man page for it.
/dev/random is "good" random. /dev/urandom will degrade to a PRNG
regardless of entropy pool feeding.
What I'd do is this:
o read some bytes from /dev/urandom
o Use those in a PRNG as simple as this:
val = SHA1(state);
state = val;