summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-12 13:28:18 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-12 13:28:18 +0000
commit55e071c381de6f544b0f5deaeeed549b471b8dbf (patch)
tree8147a498b7c14492d6588bf6f60fde37abac7eff
parenta9e5f9ef4f476583da55fecd0134821ef8d66329 (diff)
util/nvmutil: fix mistake in random check
forgot this. oops Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index e1a2cf1e..f05da81a 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -1000,7 +1000,7 @@ rhex(void)
static size_t n = 0;
static uint8_t rnum[12];
- if (urandom_fd)
+ if (urandom_fd < 0)
err(ECANCELED, "Your operating system has no /dev/[u]random");
if (!n) {