util/nvmutil: use read, not pread, on /dev/urandom

we always read from offset zero, so use read

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-03 12:31:53 +00:00
parent 188a3d012b
commit 6770fa8ef2
+1 -1
View File
@@ -287,7 +287,7 @@ rhex(void)
{
static uint8_t n = 0, rnum[16];
if (!n)
err_if(pread(rfd, (uint8_t *) &rnum, (n = 15) + 1, 0) == -1);
err_if(read(rfd, (uint8_t *) &rnum, (n = 15) + 1) == -1);
return rnum[n--] & 0xf;
}