What is the best non-deterministic way to generate large random numbers? I wrote a code to generate large numbers using a time function, but it is deterministic.
What is the best non-deterministic way to generate large random numbers? I wrote a
Share
On Linux machines
/dev/urandomis a source of non-deterministic random numbers.Another technique is to download some non-random material from the internet (news articles, stock quotes, etc); compress them (using zip or somesuch); then encrypt them with good encryption software (such as AES). The resulting stream of bytes is random (for most practical purposes).