diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-15 00:07:34 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-15 00:08:14 +0000 |
| commit | 2bb67c9cd50d8301a9ed140da300ba28a5cf4b56 (patch) | |
| tree | b99a90d4b331f28bc30d603d2e962e731e4c9528 | |
| parent | 0d5d8204e008a89a96654557d2a39563daa4580a (diff) | |
util/nvmutil: only use srand on fallback rand
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
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(); |
