diff options
author | van Hauser <vh@thc.org> | 2020-06-12 16:08:49 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-12 16:08:49 +0200 |
commit | a632c00b0d023b8a40d09839fbb2662da1cb5d37 (patch) | |
tree | 3fc2bc1bebb24de5ce90d1ba9e265b7592f92e4c /src/afl-analyze.c | |
parent | db2e04361da8f40a7ee99fef1c2a2ed8f08b0501 (diff) | |
download | afl++-a632c00b0d023b8a40d09839fbb2662da1cb5d37.tar.gz |
switch to faster and better hash + random
Diffstat (limited to 'src/afl-analyze.c')
-rw-r--r-- | src/afl-analyze.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-analyze.c b/src/afl-analyze.c index 900fbeb1..60ea0968 100644 --- a/src/afl-analyze.c +++ b/src/afl-analyze.c @@ -222,7 +222,7 @@ static u32 analyze_run_target(char **argv, u8 *mem, u32 len, u8 first_run) { int status = 0; s32 prog_in_fd; - u32 cksum; + u64 cksum; memset(trace_bits, 0, map_size); MEM_BARRIER(); @@ -321,7 +321,7 @@ static u32 analyze_run_target(char **argv, u8 *mem, u32 len, u8 first_run) { } - cksum = hash32(trace_bits, map_size, HASH_CONST); + cksum = hash64(trace_bits, map_size, HASH_CONST); /* We don't actually care if the target is crashing or not, except that when it does, the checksum should be different. */ |