mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: print correct file name for urandom
err_if reports fname, not /dev/urandom Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -347,8 +347,9 @@ rhex(void)
|
||||
|
||||
if (!n) {
|
||||
n = sizeof(rnum) - 1;
|
||||
err_if(read(rfd, (uint8_t *) &rnum, sizeof(rnum))
|
||||
!= sizeof(rnum));
|
||||
if (read(rfd, (uint8_t *) &rnum, sizeof(rnum))
|
||||
!= sizeof(rnum))
|
||||
err(ECANCELED, "Could not read from /dev/urandom");
|
||||
}
|
||||
|
||||
return rnum[n--] & 0xf;
|
||||
|
||||
Reference in New Issue
Block a user