Skip to content

Commit 152fb8c

Browse files
committed
PHPC-2477: BSON_HAVE_ARC4RANDOM_BUF is obsolete
1 parent 04a6678 commit 152fb8c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

config.w32

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ if (PHP_MONGODB != "no") {
137137
BSON_HAVE_TIMESPEC: 0,
138138
BSON_EXTRA_ALIGN: 0,
139139
BSON_HAVE_GMTIME_R: 0,
140-
BSON_HAVE_RAND_R: 0,
141-
BSON_HAVE_ARC4RANDOM_BUF: 0
140+
BSON_HAVE_RAND_R: 0
142141
};
143142

144143
mongodb_generate_header(

scripts/autotools/libbson/FindDependencies.m4

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ AC_CHECK_FUNC(gmtime_r, [AC_SUBST(BSON_HAVE_GMTIME_R, 1)])
3939
AC_SUBST(BSON_HAVE_RAND_R, 0)
4040
AC_CHECK_FUNC(rand_r, [AC_SUBST(BSON_HAVE_RAND_R, 1)])
4141

42-
# Check for arc4random_buf()
43-
AC_SUBST(BSON_HAVE_ARC4RANDOM_BUF, 0)
44-
AC_CHECK_FUNC(arc4random_buf, [AC_SUBST(BSON_HAVE_ARC4RANDOM_BUF, 1)])
45-
4642
# Check for pthreads. We might need to make this better to handle mingw,
4743
# but I actually think it is okay to just check for it even though we will
4844
# use win32 primatives.

0 commit comments

Comments
 (0)