Browse Source

hashset.hpp

hash
Antonio SJ Musumeci 2 weeks ago
parent
commit
e24d72290a
  1. 2
      src/hashset.hpp

2
src/hashset.hpp

@ -30,7 +30,7 @@ vt_hash_const_string(const char *key_)
uint64_t hash = 0xcbf29ce484222325ull; uint64_t hash = 0xcbf29ce484222325ull;
while(*key_) while(*key_)
hash = ((const unsigned char)*key_++ ^ hash) * 0x100000001b3ull;
hash = (((const unsigned char)*key_++ ^ hash) * 0x100000001b3ull);
return hash; return hash;
} }

Loading…
Cancel
Save