Skip to content

Commit 2c34321

Browse files
authored
get_rand mac supports arc4random api too (#723)
1 parent 95ed934 commit 2c34321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libbson/src/bson/bson-context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ _get_rand (unsigned int *pseed)
229229
/* no rand_r on android either */
230230
result = rand ();
231231
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \
232-
defined(__OpenBSD__)
232+
defined(__OpenBSD__) || defined(__APPLE__)
233233
arc4random_buf (&result, sizeof (result));
234234
#else
235235
result = rand_r (pseed);

0 commit comments

Comments
 (0)