Skip to content

Commit

Permalink
random support for dflybsd
Browse files Browse the repository at this point in the history
  • Loading branch information
movepointsol committed Jul 21, 2023
1 parent 1bf9a78 commit 7c2b281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rng/unix/mc_getrandom_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void raw_getrandom (uint8_t *data, uint32_t len) {
off += (size_t)r;
}
}
#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__APPLE__))
#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__))
// on BSD and macOS, loop (in pieces of 256) getentropy
#if defined(__APPLE__)
// on macOS, getentropy is defined in sys/random.h (on BSD in unistd.h)
Expand Down

0 comments on commit 7c2b281

Please sign in to comment.