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:
Leah Rowe
2026-03-10 15:38:30 +00:00
parent 318c0eb95b
commit 3174806b3f
+2 -1
View File
@@ -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);
}