diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-06-15 21:40:30 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-06-15 21:40:37 +0200 |
commit | 246444dd5765ee467b6fc090dc078cac3ce2074a (patch) | |
tree | 5c882188fca9903d4f130437671ca40a7f2eea2a | |
parent | 6a216b5708a21283c2a8dbc05af6c98c067b9e08 (diff) | |
download | afl++-246444dd5765ee467b6fc090dc078cac3ce2074a.tar.gz |
tidied hash32, unicorn
-rw-r--r-- | src/afl-performance.c | 6 | ||||
-rw-r--r-- | unicorn_mode/UNICORNAFL_VERSION | 2 | ||||
m--------- | unicorn_mode/unicornafl | 0 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/afl-performance.c b/src/afl-performance.c index 28564eb8..9c842312 100644 --- a/src/afl-performance.c +++ b/src/afl-performance.c @@ -130,13 +130,13 @@ void long_jump(afl_state_t *afl) { /* we switch from afl's murmur implementation to xxh3 as it is 30% faster - and get 64 bit hashes instead of just 32 bit. Less collisions! :-) */ -u32 hash32(const void *key, u32 len, u32 seed) { +u32 inline hash32(const void *key, u32 len, u32 seed) { - return XXH64(key, len, seed) % 0x100000000; + return XXH32(key, len, seed); } -u64 hash64(const void *key, u32 len, u64 seed) { +u64 inline hash64(const void *key, u32 len, u64 seed) { return XXH64(key, len, seed); diff --git a/unicorn_mode/UNICORNAFL_VERSION b/unicorn_mode/UNICORNAFL_VERSION index 589e3db2..c03c4529 100644 --- a/unicorn_mode/UNICORNAFL_VERSION +++ b/unicorn_mode/UNICORNAFL_VERSION @@ -1 +1 @@ -09e8e8ad +04765d30 diff --git a/unicorn_mode/unicornafl b/unicorn_mode/unicornafl -Subproject 09e8e8adec97482d9937dd15f73f78611de19bc +Subproject 04765d30ac3c3d31d83520f35237a52d18002c8 |