Note 4.5 years later: this is bad advice. See these links for more details.
If you create cryptographic keys in Linux, you want /dev/random , even if it blocks - you do not need so many bits.
For anything, for example, to generate random test data or unpredictable session identifiers, /dev/urandom is fine. Most systems have enough sources of entropy (keyboard and mouse event times, network packets, etc.) that the output will be unpredictable.
Eric Seppanen
source share