csprng - If not enough entropy is available, sleep
authorAlex Hornung <alex@alexhornung.com>
Thu, 24 Jul 2014 19:41:03 +0000 (20:41 +0100)
committerAlex Hornung <alex@alexhornung.com>
Thu, 24 Jul 2014 19:41:03 +0000 (20:41 +0100)
commitaf641625647f012627fb7e69ee67ebb4bbb6321a
tree588107eacff94338fe248f2bf0d551232064391d
parent6fc3850daa76bc3ba7a3aa02f4a797cc54e23712
csprng - If not enough entropy is available, sleep

 * If no reseed has happened yet, or if we were unsuccessful in
   reseeding the prng, sleep and try again whenever a reseed
   occurred or entropy has been added to the pools.

Reported-by: YONETANI
sys/kern/subr_csprng.c