mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: fix /dev/random fallback
i forgot to set urandom_fd Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -728,7 +728,8 @@ open_dev_urandom(void)
|
||||
errno = 0;
|
||||
|
||||
rname = oldrandom;
|
||||
if (open(rname, O_RDONLY | O_BINARY | O_NONBLOCK) == -1)
|
||||
urandom_fd = open(rname, O_RDONLY | O_BINARY | O_NONBLOCK);
|
||||
if (urandom_fd == -1)
|
||||
err(errno, "%s: could not open", rname);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user