From a74f184437d5fa7354a36344db9eb994a277f4af Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 16 Mar 2026 14:47:55 +0000 Subject: 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 --- util/nvmutil/nvmutil.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.1