on unix platforms, apr shipped with httpd 2.0.36 asks for truely-
random number (/dev/random) instead of so-so random number
(/dev/urandom). question: is it really necessary to require
/dev/random instead of /dev/urandom? if not, does the following patch
make sense?
(i noticed this because it took more than 1 minute for httpd to start
up)
itojun
--- httpd-2.0.36/srclib/apr/configure.in- Sun Jun 16 21:34:12 2002
+++ httpd-2.0.36/srclib/apr/configure.in Sun Jun 16 21:34:26 2002
@@ -1450,13 +1450,13 @@
dnl #----------------------------- Checking for /dev/random
AC_MSG_CHECKING(for /dev/random)
-if test -r "/dev/random"; then
- AC_DEFINE(DEV_RANDOM, [/dev/random])
- AC_MSG_RESULT(/dev/random)
- rand="1"
-elif test -r "/dev/urandom"; then
+if test -r "/dev/urandom"; then
AC_DEFINE(DEV_RANDOM, [/dev/urandom])
AC_MSG_RESULT(/dev/urandom)
+ rand="1"
+elif test -r "/dev/random"; then
+ AC_DEFINE(DEV_RANDOM, [/dev/random])
+ AC_MSG_RESULT(/dev/random)
rand="1"
else
case $host in