diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-18 04:36:04 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-18 04:36:04 +0000 |
| commit | ef2d5ccdf43f6f103ee4e3cde34f4c12dc38a143 (patch) | |
| tree | 207a523bffde4f2a1f5173fbe8ef80abd1589a1f /util/nvmutil/nvmutil.c | |
| parent | e48a8046d3332d616d8b4f3c6d26cae25f2221f8 (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.c | 6 |
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"); |
