diff options
author | Leigh <leigh@php.net> | 2015-02-21 15:30:43 +0000 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-05-09 21:57:59 +0200 |
commit | 5f1b83e9bb1e2fa2fe798b12264c5032168fe3a0 (patch) | |
tree | 04eb211854d66b317e77849b2f89b7ccaf3e9420 /Zend/Zend.m4 | |
parent | bc54d139aab546d90244504d92de288533477b0e (diff) | |
download | php-git-5f1b83e9bb1e2fa2fe798b12264c5032168fe3a0.tar.gz |
Improve CSPRNG implementation
Diffstat (limited to 'Zend/Zend.m4')
-rw-r--r-- | Zend/Zend.m4 | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index 111426638a..868a04d91e 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -401,13 +401,14 @@ 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 + +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 AC_ARG_ENABLE(gcc-global-regs, |