B
Ben Bacarisse
Sarchiapone said:Thank you for your suggestions.
Beware that simply taking bytes from a file will only give you good
pseudo-random numbers if the file itself is "random". Treating structured
files like WAV files in this way is not obviously going to give you a
good source of randomness. At the very least, I'd skip the header
which is a poor source of entropy. Depending on other factors (what
sounds are in the file and what use you want to make of the random
numbers) I'd consider hashing the sound samples rather than using them
directly.
If your use is a cryptographic one, comp.sci.crypt is a good place to
ask about random numbers.