diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-12-18 11:39:19 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-12-18 11:39:19 +0000 |
commit | 1763dc162d93999d2c3e108a21f0596ed61b89ab (patch) | |
tree | 63292bbbfa78cecbb61f1d352e98f853715ae0c8 /Zend/Zend.m4 | |
parent | 5fc3e649b6463c58a9dafa61bf0c0d0c1e555efe (diff) | |
download | php-git-1763dc162d93999d2c3e108a21f0596ed61b89ab.tar.gz |
Fixed random generation of cookies and canaries
Diffstat (limited to 'Zend/Zend.m4')
-rw-r--r-- | Zend/Zend.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index fb7b2e06b6..3ef1bc2727 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -404,3 +404,10 @@ AC_DEFUN([LIBZEND_CPLUSPLUS_CHECKS],[ ]) +AC_MSG_CHECKING(whether /dev/urandom exists) +if test -r "/dev/urandom" && test -c "/dev/urandom"; then + AC_DEFINE([HAVE_DEV_URANDOM], 1, [Define if the target system has /dev/urandom device]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi |