jorton 2002/12/02 08:07:10
Modified: . configure.in
Log:
Fix selection of random device on OpenBSD; prefer /dev/arandom over
/dev/random, since the latter does not provide random data on OpenBSD.
Revision Changes Path
1.506 +3 -1 apr/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.505
retrieving revision 1.506
diff -u -r1.505 -r1.506
--- configure.in 22 Nov 2002 17:01:12 -0000 1.505
+++ configure.in 2 Dec 2002 16:07:09 -0000 1.506
@@ -1628,7 +1628,9 @@
[ apr_devrandom="$withval" ], [ apr_devrandom="yes" ])
if test "$apr_devrandom" = "yes"; then
- for f in /dev/random /dev/arandom /dev/urandom; do
+ # /dev/random on OpenBSD doesn't provide random data, so
+ # prefer /dev/arandom, which does; see random(4).
+ for f in /dev/arandom /dev/random /dev/urandom; do
if test -r $f; then
apr_devrandom=$f
rand=1