Entropy in the Linux Kernel

From Leo's Notes
Revision as of 07:34, 21 September 2015 by Leo (talk | contribs) (Created page with "Entropy is required to generate random numbers. {{code|/dev/random}} and {{code|/dev/urandom}} on Linux provide a way to access random numbers. Both devices are supplied by th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 21 September 2015, at 07:34.

Entropy is required to generate random numbers. /dev/random and /dev/urandom on Linux provide a way to access random numbers. Both devices are supplied by the kernel's PRNG, though /dev/random will block when the entropy pool is depleted while /dev/urandom will continue to generate random numbers.

Entropy Pools

You can see the size of the entropy pool size in linux by running:

cat /proc/sys/kernel/random/poolsize

The number of 'bits' of entropy can be seen at:

cat /proc/sys/kernel/random/entropy_avail

See Also