diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2019-12-02 13:34:32 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2019-12-02 13:34:32 +0100 |
commit | ba1b04be1ea0efb15f2f711e5b843946bb899ecd (patch) | |
tree | 54a520e4276af918dc269e1d6a8f235ced6a553f | |
parent | 2ccf5323c2953dddc16efc419e63d6481dd67ab7 (diff) | |
download | afl++-ba1b04be1ea0efb15f2f711e5b843946bb899ecd.tar.gz |
fix of fix of fix in libdislocator
-rw-r--r-- | libdislocator/libdislocator.so.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c index 543ade2d..31884545 100644 --- a/libdislocator/libdislocator.so.c +++ b/libdislocator/libdislocator.so.c @@ -31,10 +31,9 @@ #endif #ifdef __linux__ -#ifdef __NR_getrandom -#define _GNU_SOURCE #include <unistd.h> #include <sys/syscall.h> +#ifdef __NR_getrandom #define arc4random_buf(p, l) do { ssize_t rd = syscall(__NR_getrandom, p, l, 0); if (rd != l) DEBUGF("getrandom failed"); } while(0) #else #include <time.h> |