diff options
author | van Hauser <vh@thc.org> | 2020-06-21 16:21:59 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-21 16:21:59 +0200 |
commit | eb3cb4bbf89e367e35e33e627e767e1b490bf861 (patch) | |
tree | 86a3306e273defd4e2a0d681413471c96779e3ae /src | |
parent | b0866f59ccbcd90c2c3e0ecbb5ba2d9badc60319 (diff) | |
download | afl++-eb3cb4bbf89e367e35e33e627e767e1b490bf861.tar.gz |
fix for s=0
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index c3b2da29..bfd7cb33 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -833,18 +833,10 @@ int main(int argc, char **argv_orig, char **envp) { } - if (afl->init_seed) { - - afl->rand_seed[0] = - hash64((void *)&afl->init_seed, sizeof(u32), HASH_CONST); - afl->rand_seed[1] = afl->rand_seed[0] ^ 0x1234567890abcdef; - afl->rand_seed[2] = afl->rand_seed[0] & 0x0123456789abcdef; - afl->rand_seed[3] = afl->rand_seed[0] | 0x01abcde43f567908; - - } - - // srandom((u32)afl->init_seed); - // srand((u32)afl->init_seed); // in case it is a different implementation + afl->rand_seed[0] = hash64((void *)&afl->init_seed, sizeof(u32), HASH_CONST); + afl->rand_seed[1] = afl->rand_seed[0] ^ 0x1234567890abcdef; + afl->rand_seed[2] = afl->rand_seed[0] & 0x0123456789abcdef; + afl->rand_seed[3] = afl->rand_seed[0] | 0x01abcde43f567908; if (afl->use_radamsa) { |