From 6239cfaec35787c7d4556bd2767a2f19db38b017 Mon Sep 17 00:00:00 2001 From: Ali Sherief Date: Mon, 5 Apr 2021 05:50:39 +0000 Subject: [PATCH] plug dead kangaroo errors --- HashTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HashTable.cpp b/HashTable.cpp index 06a3e59..0f7f677 100644 --- a/HashTable.cpp +++ b/HashTable.cpp @@ -243,7 +243,7 @@ void HashTable::ReAllocate(uint64_t h,uint32_t add) { } int HashTable::Add(int256_t *x,int256_t *d, uint32_t type) { - uint64_t h = (x->i64[0] ^ x->i64[1] ^ x->i64[2] ^ x->i64[3]) % HASH_SIZE; + uint64_t h = (x->i64[0] ^ x->i64[1] ^ x->i64[2] ^ x->i64[3]) & HASH_SIZE; ENTRY *e = CreateEntry(x,d,type); return Add(h,e);