From 7d09b8f8d90fb524e43bab1b675c0f7d5485dc8f Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 26 Mar 2010 08:52:02 +1100 Subject: - (djm) [openbsd-compat/bsd-arc4random.c] Fix preprocessor detection for arc4random_buf() and arc4random_uniform(); from Josh Gilkerson --- openbsd-compat/bsd-arc4random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsd-compat/bsd-arc4random.c') 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) } #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". -- cgit v1.2.3