MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / dictGenHashFunction

Function dictGenHashFunction

src/dict.cpp:89–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87extern "C" uint64_t siphash_nocase(const uint8_t *in, const size_t inlen, const uint8_t *k);
88
89uint64_t dictGenHashFunction(const void *key, int len) {
90 return siphash((const uint8_t*)key,len,dict_hash_function_seed);
91}
92
93uint64_t dictGenCaseHashFunction(const unsigned char *buf, int len) {
94 return siphash_nocase(buf,len,dict_hash_function_seed);

Callers 14

cacheKeyMethod · 0.70
bulkInsertMethod · 0.70
dictStringHashFunction · 0.70
hashCallbackFunction · 0.70
dictCStringHashFunction · 0.70
hashFunction · 0.70
hashFunction · 0.70
dictSdsHashFunction · 0.70
dictSdsHashFunction · 0.70
dictObjHashFunction · 0.70
dictSdsHashFunction · 0.70
dictEncObjHashFunction · 0.70

Calls 1

siphashFunction · 0.85

Tested by

no test coverage detected