[ltp] random number generator

Chris Hanson linux-thinkpad@linux-thinkpad.org
Thu, 22 Feb 2007 08:34:51 -0500


James Knott wrote:
> I don't know about that, but one method for generating a reasonably
> random number is to use "ps aux|md5sum".
> This will create a 128 bit number that is determined by the recent state
> of all your processes, which changes constantly.

Even without hardware support, you'll get better random bits out of
/dev/random (or /dev/urandom if you don't need cryptographic strengh).