summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2010-03-31 18:03:17 (GMT)
committerRasmus Lerdorf <rasmus@php.net>2010-03-31 18:03:17 (GMT)
commit9692a3619c8def5f558fabb7b89284e199616587 (patch)
tree94f9340de073d08093bf2af881300b7d849c7372 /Zend
parente0f91992c0a416f5bcb13af5b236faefdbc778f2 (diff)
downloadphp-9692a3619c8def5f558fabb7b89284e199616587.tar.gz
Set session.entropy_file to /dev/urandom or /dev/arandom by
default if present at compile-time. Addresses part of bug #51436
Diffstat (limited to 'Zend')
-rw-r--r--Zend/Zend.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4
index 6b1f705..c56b769 100644
--- a/Zend/Zend.m4
+++ b/Zend/Zend.m4
@@ -419,4 +419,11 @@ if test -r "/dev/urandom" && test -c "/dev/urandom"; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
+ AC_MSG_CHECKING(whether /dev/arandom exists)
+ if test -r "/dev/arandom" && test -c "/dev/arandom"; then
+ AC_DEFINE([HAVE_DEV_ARANDOM], 1, [Define if the target system has /dev/arandom device])
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
fi