mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: fix mistake in random check
forgot this. oops Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user