mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: fix bad arc4random check
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -349,12 +349,13 @@ main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARC4RANDOM_BUF
|
||||
open_dev_urandom();
|
||||
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || \
|
||||
#if defined(__OpenBSD__) || defined(__FreeBSD__) || \
|
||||
defined(__NetBSD__) || defined(__APPLE__) || \
|
||||
defined(__DragonFly__)
|
||||
err(ECANCELED, "Maintainer error: arc4random disabled on BSD/MacOS");
|
||||
#endif
|
||||
open_dev_urandom();
|
||||
#endif
|
||||
|
||||
open_gbe_file();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user