util/nvmutil: simplify flags on urandom

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-12 13:31:35 +00:00
parent 55e071c381
commit ea4deb98b5
+2 -2
View File
@@ -718,12 +718,12 @@ static void
open_dev_urandom(void)
{
rname = newrandom;
urandom_fd = open(rname, O_RDONLY | O_BINARY | O_NONBLOCK);
urandom_fd = open(rname, O_RDONLY);
if (urandom_fd != -1)
return;
rname = oldrandom;
urandom_fd = open(rname, O_RDONLY | O_BINARY | O_NONBLOCK);
urandom_fd = open(rname, O_RDONLY);
}
static void