> I get /dev/random being 70+X slower, not ~2X slower

It's not said about which device is meant, but it's probably /dev/urandom - 
from similar conversation on discord, and the manpage:

> The /dev/random device is a legacy interface which dates back to a time where 
> the cryptographic primitives used in the implementation of /dev/urandom were 
> not widely trusted. It will return random bytes only within the estimated 
> number of bits of fresh noise in the entropy pool, blocking if necessary. 
> /dev/random is suitable for applications that need high quality randomness, 
> and can afford indeterminate delays.

and I thought this might be relevant:

> Since Linux 3.16, a read(2) from /dev/urandom will return at most 32 MB. A 
> read(2) from /dev/random will return at most 512 bytes (340 bytes on Linux 
> kernels before version 2.6.12).

but on my machine, `strace dd if=/dev/random bs=1024 >/dev/null` shows 1024 
reads. weird.

Reply via email to