From 55e071c381de6f544b0f5deaeeed549b471b8dbf Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 12 Mar 2026 13:28:18 +0000 Subject: util/nvmutil: fix mistake in random check forgot this. oops Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/nvmutil') 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) { -- cgit v1.2.1