summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-18 04:36:04 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:42 +0000
commit1197d43923776bc143f5c817aa1c5b10ff91f128 (patch)
tree38d33f3910605fe6997d6c9ca931fedbfd42836b /util/nvmutil/nvmutil.c
parent7fd8869c209aa035a0837d179f1e85a3ffb9327e (diff)
nvmutil: don't disable blocking on random
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 0b74e96d..79ce3b5e 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -1001,17 +1001,17 @@ rlong(void)
unsigned long rval;
- fd = open("/dev/urandom", O_RDONLY | O_BINARY | O_NONBLOCK);
+ fd = open("/dev/urandom", O_RDONLY | O_BINARY);
#if !(defined(__OpenBSD__) && defined(OpenBSD)) || \
(defined(__OpenBSD__) && defined(OpenBSD) && \
OpenBSD < 604)
if (fd < 0) /* old openbsd */
- fd = open("/dev/arandom", O_RDONLY | O_BINARY | O_NONBLOCK);
+ fd = open("/dev/arandom", O_RDONLY | O_BINARY);
#endif
if (fd < 0)
- fd = open("/dev/random", O_RDONLY | O_BINARY | O_NONBLOCK);
+ fd = open("/dev/random", O_RDONLY | O_BINARY);
if (fd < 0)
err(errno, "can't open random device");