mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 08:40:14 +02:00
util/nvmutil: only use srand on fallback rand
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -745,7 +745,10 @@ main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(HAVE_ARC4RANDOM_BUF) || \
|
||||||
|
(HAVE_ARC4RANDOM_BUF) < 1
|
||||||
srand((uint)(time(NULL) ^ getpid()));
|
srand((uint)(time(NULL) ^ getpid()));
|
||||||
|
#endif
|
||||||
|
|
||||||
open_gbe_file();
|
open_gbe_file();
|
||||||
lock_gbe_file();
|
lock_gbe_file();
|
||||||
|
|||||||
Reference in New Issue
Block a user