summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-12 13:31:35 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-12 13:31:35 +0000
commitea4deb98b584da288afd405a0b4c66b24d698625 (patch)
treec5e562348993f3981abed9eaec0789882db633d1 /util
parent55e071c381de6f544b0f5deaeeed549b471b8dbf (diff)
util/nvmutil: simplify flags on urandom
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index f05da81a..a9be4281 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -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