]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (djm) [openbsd-compat/bsd-arc4random.c] Fix preprocessor detection
authorDamien Miller <djm@mindrot.org>
Thu, 25 Mar 2010 21:52:02 +0000 (08:52 +1100)
committerDamien Miller <djm@mindrot.org>
Thu, 25 Mar 2010 21:52:02 +0000 (08:52 +1100)
   for arc4random_buf() and arc4random_uniform(); from Josh Gilkerson

ChangeLog
openbsd-compat/bsd-arc4random.c

index d94247ab7e10480c01b445e2b73d55a399be029c..88d4b2c1e009fb297f5f3f15ee2f6489ec1bbf6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20100326
+ - (djm) [openbsd-compat/bsd-arc4random.c] Fix preprocessor detection
+   for arc4random_buf() and arc4random_uniform(); from Josh Gilkerson
+
 20100324
  - (dtucker) [contrib/cygwin/ssh-host-config] Mount the Windows directory
    containing the services file explicitely case-insensitive.  This allows to
index 9d4c8690eb18b37d7549011c0cafc504ba7ea9fb..d7c5862534f47594630d2c2dfc715fbd08077503 100644 (file)
@@ -84,7 +84,7 @@ arc4random_stir(void)
 }
 #endif /* !HAVE_ARC4RANDOM */
 
-#ifndef ARC4RANDOM_BUF
+#ifndef HAVE_ARC4RANDOM_BUF
 void
 arc4random_buf(void *_buf, size_t n)
 {
@@ -102,7 +102,7 @@ arc4random_buf(void *_buf, size_t n)
 }
 #endif /* !HAVE_ARC4RANDOM_BUF */
 
-#ifndef ARC4RANDOM_UNIFORM
+#ifndef HAVE_ARC4RANDOM_UNIFORM
 /*
  * Calculate a uniformly distributed random number less than upper_bound
  * avoiding "modulo bias".