]> git.karo-electronics.de Git - linux-beck.git/commit
random: initialize the non-blocking pool via add_hwgenerator_randomness()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 12 Jun 2016 22:11:51 +0000 (18:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 13 Jun 2016 15:15:17 +0000 (11:15 -0400)
commit3371f3da08cff4b75c1f2dce742d460539d6566d
treeb8a4a011ae96dfe7ad41a83367ffc153bd4ad768
parent1a695a905c18548062509178b98bc91e67510864
random: initialize the non-blocking pool via add_hwgenerator_randomness()

If we have a hardware RNG and are using the in-kernel rngd, we should
use this to initialize the non-blocking pool so that getrandom(2)
doesn't block unnecessarily.

Cc: stable@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c