diff --git a/src/utils.h b/src/utils.h index 5f5e3ebba2..f0dd303996 100644 --- a/src/utils.h +++ b/src/utils.h @@ -508,11 +508,11 @@ inline uint32_t ComputeLongHash(uint64_t key) { hash = hash ^ (hash >> 11); hash = hash + (hash << 6); hash = hash ^ (hash >> 22); - return static_cast(hash); + return static_cast(hash & 0x3fffffff); } inline uint32_t ComputeSeededHash(uint32_t key, uint64_t seed) { - return ComputeUnseededHash(key ^ static_cast(seed)); + return ComputeLongHash(static_cast(key) ^ seed); } inline uint32_t ComputePointerHash(void* ptr) {