From: Guillem Jover Date: Wed, 2 Dec 2015 03:00:58 +0000 (+0100) Subject: Fix getentropy implementation to use the correct system hooks X-Git-Tag: 0.8.1~9 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d2f59a23d5e1d8bc440c061cac2a0d6fc133a79e;p=thirdparty%2Flibbsd.git Fix getentropy implementation to use the correct system hooks Include getentropy_.c instead of arc4random_.c. --- diff --git a/src/getentropy.c b/src/getentropy.c index be19d7e..24b58b3 100644 --- a/src/getentropy.c +++ b/src/getentropy.c @@ -27,17 +27,17 @@ #if defined(__linux__) #include "getentropy_linux.c" #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -#include "arc4random_bsd.c" +#include "getentropy_bsd.c" #elif defined(__NetBSD__) -#include "arc4random_bsd.c" +#include "getentropy_bsd.c" #elif defined(__sun) -#include "arc4random_solaris.c" +#include "getentropy_solaris.c" #elif defined(__APPLE__) -#include "arc4random_osx.c" +#include "getentropy_osx.c" #elif defined(_AIX) -#include "arc4random_aix.c" +#include "getentropy_aix.c" #elif defined(__hpux) -#include "arc4random_hpux.c" +#include "getentropy_hpux.c" #else #error "No getentropy hooks defined for this platform." #endif