3 ms·
There is no reason to use /dev/random other than cargo culting devs that believe that /dev/urandom can supposedly run out of entropy. Use /dev/urandom. Don't u
by X-Istence 12y ago
There is no reason to use /dev/random other than cargo culting devs that believe that /dev/urandom can supposedly run out of entropy.
Use /dev/urandom. Don't use /dev/random. On sane systems (FreeBSD for example), /dev/urandom is a symlink to /dev/random and /dev/random only blocks once, upon startup to gather entropy, after that it never blocks!
- obsurveyor 12y agoI don't think it's a "cargo cult" if the official docs mention and warn about entropy pool exhaustion.
- tptacek 12y agoThe official docs are wrong.
- obsurveyor 12y agoThen submit a patch to fix them.