util/nvmutil: directly compare fd/urandom_fd

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-09 06:24:22 +00:00
parent dbc7fadcbc
commit d0bf316edf
+1 -1
View File
@@ -945,7 +945,7 @@ read_gbe_file_exact(int fd, void *buf, size_t len,
}
if (rval != -1) {
if (path == oldrandom || path == newrandom) {
if (fd == urandom_fd) {
/*
* /dev/[u]random reads can still return
* partial reads legally, on some weird