about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2020-04-25 18:13:11 +0100
committerDavid Carlier <devnexen@gmail.com>2020-04-25 20:17:10 +0100
commit80916a3613c05b651eaab005caeb96bd80664d0f (patch)
tree60af9ad43467bec22d88a8abc3a81c2f8fd0fad3 /include
parent0c3d06c41e2848f53db5caa881d624df87cec0d2 (diff)
downloadafl++-80916a3613c05b651eaab005caeb96bd80664d0f.tar.gz
Android supports arc4 api.
Diffstat (limited to 'include')
-rw-r--r--include/types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/types.h b/include/types.h
index f2a12953..a204294f 100644
--- a/include/types.h
+++ b/include/types.h
@@ -108,7 +108,7 @@ typedef int64_t s64;
   })
 
 #ifdef AFL_LLVM_PASS
-#if defined(__linux__)
+#if defined(__linux__) || !defined(__ANDROID__)
 #define AFL_SR(s) (srandom(s))
 #define AFL_R(x) (random() % (x))
 #else
@@ -116,7 +116,7 @@ typedef int64_t s64;
 #define AFL_R(x) (arc4random_uniform(x))
 #endif
 #else
-#if defined(__linux__)
+#if defined(__linux__) || !defined(__ANDROID__)
 #define SR(s) (srandom(s))
 #define R(x) (random() % (x))
 #else