util/nvmutil: fix bad arc4random check

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-08 21:16:18 +00:00
parent c425c74c54
commit 61e7147505
+3 -2
View File
@@ -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();