diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | openbsd-compat/bsd-arc4random.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20100326 | ||
2 | - (djm) [openbsd-compat/bsd-arc4random.c] Fix preprocessor detection | ||
3 | for arc4random_buf() and arc4random_uniform(); from Josh Gilkerson | ||
4 | |||
1 | 20100324 | 5 | 20100324 |
2 | - (dtucker) [contrib/cygwin/ssh-host-config] Mount the Windows directory | 6 | - (dtucker) [contrib/cygwin/ssh-host-config] Mount the Windows directory |
3 | containing the services file explicitely case-insensitive. This allows to | 7 | containing the services file explicitely case-insensitive. This allows to |
diff --git a/openbsd-compat/bsd-arc4random.c b/openbsd-compat/bsd-arc4random.c index 9d4c8690e..d7c586253 100644 --- a/openbsd-compat/bsd-arc4random.c +++ b/openbsd-compat/bsd-arc4random.c | |||
@@ -84,7 +84,7 @@ arc4random_stir(void) | |||
84 | } | 84 | } |
85 | #endif /* !HAVE_ARC4RANDOM */ | 85 | #endif /* !HAVE_ARC4RANDOM */ |
86 | 86 | ||
87 | #ifndef ARC4RANDOM_BUF | 87 | #ifndef HAVE_ARC4RANDOM_BUF |
88 | void | 88 | void |
89 | arc4random_buf(void *_buf, size_t n) | 89 | arc4random_buf(void *_buf, size_t n) |
90 | { | 90 | { |
@@ -102,7 +102,7 @@ arc4random_buf(void *_buf, size_t n) | |||
102 | } | 102 | } |
103 | #endif /* !HAVE_ARC4RANDOM_BUF */ | 103 | #endif /* !HAVE_ARC4RANDOM_BUF */ |
104 | 104 | ||
105 | #ifndef ARC4RANDOM_UNIFORM | 105 | #ifndef HAVE_ARC4RANDOM_UNIFORM |
106 | /* | 106 | /* |
107 | * Calculate a uniformly distributed random number less than upper_bound | 107 | * Calculate a uniformly distributed random number less than upper_bound |
108 | * avoiding "modulo bias". | 108 | * avoiding "modulo bias". |