util/nvmutil: /dev/random fallback

now the custom fallback code is very unlikely
to ever actually be used, on any system,
except really old systems.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-16 14:47:55 +00:00
parent 975aefeb80
commit a74f184437

View File

@@ -1373,6 +1373,8 @@ read_urandom(void)
if (fd < 0) {
fd = open("/dev/urandom", O_RDONLY);
if (fd < 0)
fd = open("/dev/random", O_RDONLY);
if (fd < 0)
return 16;