summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-25 12:00:18 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-25 12:00:18 +0000
commitd5a08963c3c0cc9e964224e4cff9bbaf543b8303 (patch)
tree9a365230f62482d24fa3ff6beeed3fecf21f110a
parente9cefe81b07f803ca87ae0f06123bca9c9528fbf (diff)
libreboot-utils: add dragonflybsd to arc4randommkhtemp-wip
it supports arc4random since forever Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/libreboot-utils/lib/rand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c
index 9c1fa4e3..a8fbb706 100644
--- a/util/libreboot-utils/lib/rand.c
+++ b/util/libreboot-utils/lib/rand.c
@@ -61,9 +61,9 @@ rlong(void)
int saved_errno = errno;
errno = 0;
-#if (defined(__OpenBSD__) && (OpenBSD) >= 201) || \
- defined(__FreeBSD__) || \
- defined(__NetBSD__) || defined(__APPLE__)
+#if (defined(__OpenBSD__) || defined(__FreeBSD__) || \
+ defined(__NetBSD__) || defined(__APPLE__) || \
+ defined(__DragonFly__))
arc4random_buf(&rval, sizeof(size_t));
goto out;