From 246444dd5765ee467b6fc090dc078cac3ce2074a Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Mon, 15 Jun 2020 21:40:30 +0200 Subject: tidied hash32, unicorn --- src/afl-performance.c | 6 +++--- unicorn_mode/UNICORNAFL_VERSION | 2 +- unicorn_mode/unicornafl | 2 +- 3 files changed, 5 insertions(+), 5 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 index 09e8e8ad..04765d30 160000 --- a/unicorn_mode/unicornafl +++ b/unicorn_mode/unicornafl @@ -1 +1 @@ -Subproject commit 09e8e8adec97482d9937dd15f73f78611de19bc3 +Subproject commit 04765d30ac3c3d31d83520f35237a52d18002c83 -- cgit 1.4.1