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) {