LCE: Don't play dice with random numbers
LCE: Don't play dice with random numbers
Posted Nov 23, 2012 1:24 UTC (Fri) by dirtyepic (guest, #30178)Parent article: LCE: Don't play dice with random numbers
I was bringing up a new laptop last weekend and noticed a message in the boot log that no hardware RNG was found which I thought was odd. I don't seem to have a /dev/hwrng either. I wonder if I configured something incorrectly.
Posted Nov 23, 2012 9:38 UTC (Fri)
by etienne (guest, #25256)
[Link] (1 responses)
Posted Nov 23, 2012 20:03 UTC (Fri)
by nix (subscriber, #2304)
[Link]
Posted Nov 23, 2012 20:35 UTC (Fri)
by bjencks (subscriber, #80303)
[Link] (1 responses)
However, most applications get their entropy from /dev/[u]random, so for them to benefit you need to feed the kernel pools from it. Modern rngd does this by calling the instruction directly in user-mode and then pushing the entropy to the kernel. Additionally, as described in the article, if you have a 3.6+ kernel with "Architectural RNG" enabled, it xors rdrand output with all random and urandom reads.
You can check if rdrand is available with "grep rdrand /proc/cpuinfo".
Posted Nov 24, 2012 6:05 UTC (Sat)
by dirtyepic (guest, #30178)
[Link]
LCE: Don't play dice with random numbers
LCE: Don't play dice with random numbers
LCE: Don't play dice with random numbers
Thanks for the info. With 3.6 it seems to be working.
LCE: Don't play dice with random numbers
# rngd -v
Available entropy sources:
DRNG
TPM