From 04844420dc9096ef10ac1080a5f0c2f47c8ba720 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 24 Sep 2020 08:43:53 -0400 Subject: [PATCH] wyhash: use safety mode 1 mode 0 is not intended for unaligned buffers --- src/wyhash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wyhash.h b/src/wyhash.h index bbbaf481..b5b85f47 100644 --- a/src/wyhash.h +++ b/src/wyhash.h @@ -3,7 +3,7 @@ #define wyhash_final_version //defines that change behavior #ifndef WYHASH_CONDOM -#define WYHASH_CONDOM 0 //0,1,2 +#define WYHASH_CONDOM 1 //0: read 8 bytes before and after boudaries, dangerous but fastest. 1: normal valid behavior 2: extra protection against entropy loss (probability=2^-63), aka. "blind multiplication" #endif #define WYHASH_32BIT_MUM 0 //faster on 32 bit system //includes @@ -129,7 +129,7 @@ static inline void make_secret(uint64_t seed, uint64_t *secret){ for(size_t j=0;j