Michael Martinez asked:
The man page for rngd on Linux says
-o (/dev/random) is used for random number output while
-r (/dev/hwrng) for random number input. What does this mean? How do these device files differ and why are they used differently? My understanding is the the kernel generates its own random sequences from hardware events and sticks them into /dev/random. So why would rngd need an “input” device?
/dev/hwrng is a device special for a hardware source of random numbers. The man page gives additional sources that rngd can read from if desired.
With its defaults, rngd reads from this source and writes to
The effect of writing to
/dev/random is to add the data to the kernel’s entropy pool.
The number of sources from which the kernel can gather entropy data on its own is limited. Using a userland process which can gather entropy from additional sources and provide it to the kernel means that it is less likely to run out of entropy if
/dev/random is heavily used.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.