mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: only check n in rhex on linux
not bsd Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -942,8 +942,10 @@ rhex(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef NVMUTIL_ARC4RANDOM_BUF
|
||||
if (!n)
|
||||
err(ECANCELED, "Randomisation failure");
|
||||
#endif
|
||||
|
||||
return (uint16_t)(rnum[--n] & 0xf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user