util/nvmutil: fix mistake in random check

forgot this. oops

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-12 13:28:18 +00:00
parent a9e5f9ef4f
commit 55e071c381
+1 -1
View File
@@ -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) {