Skip to content

Commit

Permalink
+NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
drchrispinnock committed Jan 27, 2024
1 parent 46e71a9 commit b2a46c9
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(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__))
#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__)) || defined(__NetBSD__)
// 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 b2a46c9

Please sign in to comment.