Skip to content

Commit 2740920

Browse files
committed
random disable arc4random_buf for glibc, merge mistake
1 parent dee3951 commit 2740920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ext/random/random.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ PHPAPI int php_random_bytes(void *bytes, size_t size, bool should_throw)
504504
return FAILURE;
505505
}
506506
#elif HAVE_DECL_ARC4RANDOM_BUF && ((defined(__OpenBSD__) && OpenBSD >= 201405) || (defined(__NetBSD__) && __NetBSD_Version__ >= 700000001 && __NetBSD_Version__ < 1000000000) || \
507-
defined(__APPLE__) || defined(__GLIBC__))
507+
defined(__APPLE__))
508508
/*
509509
* OpenBSD until there is a valid equivalent
510510
* or NetBSD before the 10.x release

0 commit comments

Comments
 (0)