util/nvmutil: use separate st variable for urandom

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-03 04:13:21 +00:00
parent 1c10eb524f
commit c64324467f
+2 -1
View File
@@ -142,11 +142,12 @@ void
openFiles(void)
{
struct stat st;
struct stat st_rfd;
checkdir("/dev/urandom");
checkdir(fname);
xopen(&rfd, "/dev/urandom", O_RDONLY, &st);
xopen(&rfd, "/dev/urandom", O_RDONLY, &st_rfd);
xopen(&fd, fname, flags, &st);
switch(st.st_size) {