diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-08 21:16:18 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-08 21:16:18 +0000 |
| commit | 61e7147505f4aae4f14cc7290f2759baa2b26f39 (patch) | |
| tree | 2b9f0d2b82999334f7f4bcc9adf69f128a1f5f6e | |
| parent | c425c74c54b02d4f0059888802782e72eabd3957 (diff) | |
util/nvmutil: fix bad arc4random check
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 1cf4c1af..682d203d 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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(); |
