about summary refs log tree commit diff
path: root/src/afl-fuzz-init.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-06-16 01:29:07 +0200
committerhexcoder- <heiko@hexco.de>2020-06-16 01:29:07 +0200
commitbac2da866912d69eb89207757375f0753be2cae2 (patch)
tree9f1a710a6282d4cf4cb9752024c3040eaf40b869 /src/afl-fuzz-init.c
parent9c293b5b7b941d8046e77989f100d084a516d029 (diff)
downloadafl++-bac2da866912d69eb89207757375f0753be2cae2.tar.gz
fix for *BSD: remove all HAVE_ARC4RANDOM dependencies
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r--src/afl-fuzz-init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 1245d94b..ee96c73c 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -1541,10 +1541,8 @@ void setup_dirs_fds(afl_state_t *afl) {
   afl->fsrv.dev_null_fd = open("/dev/null", O_RDWR);
   if (afl->fsrv.dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); }
 
-#ifndef HAVE_ARC4RANDOM
   afl->fsrv.dev_urandom_fd = open("/dev/urandom", O_RDONLY);
   if (afl->fsrv.dev_urandom_fd < 0) { PFATAL("Unable to open /dev/urandom"); }
-#endif
 
   /* Gnuplot output file. */