Bugtraq mailing list archives

Re: Generating a true random number?


From: fitz () wang com (Tom Fitzgerald)
Date: Fri, 3 Jun 1994 18:06:11 -0400 (EDT)


  I need to generate an 8 byte random DES key, so of course, I need a way
of generating 8 random bytes. Any ideas? 

  Seeding off the pid or time of day doesn't do much for me...

Assuming you're not in a hurry, mjr's recommendation has always worked for
me....

( ps -ael ; pstat ; netstat -s ; netstat -m ) | md5

This is slightly SysV-flavored, tune as needed.

-- 
Tom Fitzgerald   Wang Labs   Lowell MA, USA   1-508-967-5278   fitz () wang com
Pardon me, I'm lost, can you direct me to the information superhighway?



Current thread: