diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-12 13:28:18 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-12 13:28:18 +0000 |
| commit | 55e071c381de6f544b0f5deaeeed549b471b8dbf (patch) | |
| tree | 8147a498b7c14492d6588bf6f60fde37abac7eff /util/nvmutil | |
| parent | a9e5f9ef4f476583da55fecd0134821ef8d66329 (diff) | |
util/nvmutil: fix mistake in random check
forgot this. oops
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
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) { |
