summaryrefslogtreecommitdiff
path: root/node/Hashtable.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Hashtable.hpp')
-rw-r--r--node/Hashtable.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/node/Hashtable.hpp b/node/Hashtable.hpp
index bcc111e3..d2b85c15 100644
--- a/node/Hashtable.hpp
+++ b/node/Hashtable.hpp
@@ -380,6 +380,11 @@ private:
* hash an integer key index in a hash table. */
return (unsigned long)i;
}
+ static inline unsigned long _hc(const uint32_t i)
+ {
+ // In the uint32_t case we use a simple multiplier for hashing to ensure coverage
+ return ((unsigned long)i * (unsigned long)2654435761);
+ }
inline void _grow()
{