Subject: Re: creating random files
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Michael Graff <explorer@flame.org>
List: tech-kern
Date: 03/08/1999 16:45:49
Manuel Bouyer <bouyer@antioche.lip6.fr> 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;

--Michael