summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-15 00:07:34 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:41 +0000
commit00f92b33e1c4fb377cef36c2ecc51b397561aae4 (patch)
tree129bb82ccc84bbf9abfd64ca5c75c51669807ef9 /util
parent0ff1cac40c31a22cee485fb149bd9877452a2429 (diff)
util/nvmutil: only use srand on fallback rand
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 0003d9b2..de14461f 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -745,7 +745,10 @@ main(int argc, char *argv[])
#endif
#endif
+#if !defined(HAVE_ARC4RANDOM_BUF) || \
+ (HAVE_ARC4RANDOM_BUF) < 1
srand((uint)(time(NULL) ^ getpid()));
+#endif
open_gbe_file();
lock_gbe_file();