Switch Linux getrandom() usage to non-blocking mode, continuing to
authorbeck <beck@openbsd.org>
Sat, 29 Apr 2017 18:43:31 +0000 (18:43 +0000)
committerbeck <beck@openbsd.org>
Sat, 29 Apr 2017 18:43:31 +0000 (18:43 +0000)
commitedb2eeb7da8494998d0073f8aaeb8478cee5e00b
tree51008b720f77d2af42e4fbb84c630b8e978c30c5
parent2f82bf5f5371406899a5e31936e88b31f5e0b3ee
Switch Linux getrandom() usage to non-blocking mode, continuing to
use fallback mechanims if unsuccessful.

The design of Linux getrandom is broken.  It has an
uninitialized phase coupled with blocking behaviour, which
is unacceptable from within a library at boot time without
possible recovery.
ok deraadt@ jsing@
lib/libcrypto/arc4random/getentropy_linux.c