apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1820755 - /apr/apr/trunk/misc/unix/rand.c
Date Wed, 10 Jan 2018 14:53:43 GMT
Author: covener
Date: Wed Jan 10 14:53:43 2018
New Revision: 1820755

URL: http://svn.apache.org/viewvc?rev=1820755&view=rev
Log:
fix ifdef for arc4random

r1814239 added:
  AC_CHECK_FUNCS(arc4random_buf)

Which only defines HAVE_ARC4RANDOM_BUF




Modified:
    apr/apr/trunk/misc/unix/rand.c

Modified: apr/apr/trunk/misc/unix/rand.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/misc/unix/rand.c?rev=1820755&r1=1820754&r2=1820755&view=diff
==============================================================================
--- apr/apr/trunk/misc/unix/rand.c (original)
+++ apr/apr/trunk/misc/unix/rand.c Wed Jan 10 14:53:43 2018
@@ -224,7 +224,7 @@ APR_DECLARE(apr_status_t) apr_generate_r
         length -= rc;
     } while (length > 0);
 
-#elif defined(HAVE_ARC4RANDOM)
+#elif defined(HAVE_ARC4RANDOM_BUF)
 
     arc4random_buf(buf, length);
 



Mime
View raw message