X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/14ed10d9573b57c43011c2af2f5abb771abc7bfb..acfe3675e3c5ab8ee2ca07642334d9468cfc4d39:/src/dict.h diff --git a/src/dict.h b/src/dict.h index 76451047..f480ae53 100644 --- a/src/dict.h +++ b/src/dict.h @@ -155,13 +155,15 @@ dictEntry *dictNext(dictIterator *iter); void dictReleaseIterator(dictIterator *iter); dictEntry *dictGetRandomKey(dict *d); void dictPrintStats(dict *d); -unsigned int dictGenHashFunction(const unsigned char *buf, int len); +unsigned int dictGenHashFunction(const void *key, int len); unsigned int dictGenCaseHashFunction(const unsigned char *buf, int len); void dictEmpty(dict *d); void dictEnableResize(void); void dictDisableResize(void); int dictRehash(dict *d, int n); int dictRehashMilliseconds(dict *d, int ms); +void dictSetHashFunctionSeed(unsigned int initval); +unsigned int dictGetHashFunctionSeed(void); /* Hash table types */ extern dictType dictTypeHeapStringCopyKey;