summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-06 16:43:18 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-06 16:43:18 +0000
commit7f6d7526cc2d5ac965ba5eaf99d482b13086a820 (patch)
tree7f256b3aad3bd0bc9defc43e3c2a6d26b752efe1
parenta358a6fe09ab795d80580f7bd7d99f4266b11544 (diff)
util/nvmutil: use arc4random on DragonFly BSD
it has arc4random, so we will use it there. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index b727a539..f489448d 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -53,7 +53,8 @@ static const char *getnvmprogname(void);
static void set_err(int);
#if defined(__OpenBSD__) || defined(__FreeBSD__) || \
- defined(__NetBSD__) || defined(__APPLE__)
+ defined(__NetBSD__) || defined(__APPLE__) || \
+ defined(__DragonFly__)
#ifndef HAVE_ARC4RANDOM
#define HAVE_ARC4RANDOM
#endif