mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 23:08:49 +02:00
util/nvmutil: /dev/random fallback
now the custom fallback code is very unlikely to ever actually be used, on any system, except really old systems. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -1373,6 +1373,8 @@ read_urandom(void)
|
|||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
|
|
||||||
fd = open("/dev/urandom", O_RDONLY);
|
fd = open("/dev/urandom", O_RDONLY);
|
||||||
|
if (fd < 0)
|
||||||
|
fd = open("/dev/random", O_RDONLY);
|
||||||
|
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return 16;
|
return 16;
|
||||||
|
|||||||
Reference in New Issue
Block a user