r/sysadmin • • Mar 08 '14

Myths about /dev/urandom

http://www.2uo.de/myths-about-urandom/
78 Upvotes

5 comments sorted by

3

u/alfredr Mar 09 '14

There are definitely some misleading statements in this article. For instance

djb remarked that more entropy actually can hurt.

What djb says there is that adding numbers derived from the pool back into the pool can lower the entropy. This is not adding entropy into the pool but, rather, lowering the entropy in the pool while simultaneously increasing the entropy count.

1

u/disclosure5 Mar 09 '14

It's an incredibly valid point that, concerns about blocking on /dev/random, and FUD about the insecurity of urandom, is the reason for the continued DIY failures we keep seeing with people implementing predictable PRNGs in user space.

-7

u/LeoPanthera Ex-Sysadmin Mar 09 '14

This only applies to Linux, far from all "unix like" systems like it claims. BSD random never blocks.

11

u/Undeluded Cybersecurity/infrastructure consultant Mar 09 '14

BSD's random blocks at boot until sufficient entropy has built up, then never blocks again.

11

u/ghyspran Space Cadet Mar 09 '14

Which is actually mentioned in the article.