diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 14:47:55 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-16 14:47:55 +0000 |
| commit | a74f184437d5fa7354a36344db9eb994a277f4af (patch) | |
| tree | 4030888aea581eb6a24789b73c2f6ee0bf725fe0 | |
| parent | 975aefeb80d27febd490e3787896e2dce4f42396 (diff) | |
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>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 0b303fe3..fbddcd3e 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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; |
