Android supports arc4 api.

This commit is contained in:
David Carlier
2020-04-25 18:13:11 +01:00
parent 0c3d06c41e
commit 80916a3613
2 changed files with 3 additions and 3 deletions

View File

@ -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