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:
Leah Rowe
2026-03-03 19:53:09 +00:00
parent f4e477b549
commit fd515e4c28
+3 -2
View File
@@ -347,8 +347,9 @@ rhex(void)
if (!n) { if (!n) {
n = sizeof(rnum) - 1; n = sizeof(rnum) - 1;
err_if(read(rfd, (uint8_t *) &rnum, sizeof(rnum)) if (read(rfd, (uint8_t *) &rnum, sizeof(rnum))
!= sizeof(rnum)); != sizeof(rnum))
err(ECANCELED, "Could not read from /dev/urandom");
} }
return rnum[n--] & 0xf; return rnum[n--] & 0xf;