From baaa84bbd2300248c95fd6b771d3f35e6ed13fcd Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sat, 11 Jan 2025 23:29:07 -0600 Subject: [PATCH] hashset.hpp --- src/hashset.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/hashset.hpp b/src/hashset.hpp index 92022f8f..075ddbf1 100644 --- a/src/hashset.hpp +++ b/src/hashset.hpp @@ -29,14 +29,9 @@ static inline uint64_t -vt_hash_const_string(const char *key_) +vt_hash_uint64(const uint64_t hash_) { - uint64_t hash = 0xcbf29ce484222325ull; - - while(*key_) - hash = (((const unsigned char)*key_++ ^ hash) * 0x100000001b3ull); - - return hash; + return hash_; } static