20 May
2011
20 May
'11
1:28 p.m.
2011/5/20 Frédéric Bron
But I get 1244709680 when size_t is 32 bits and 706246339511088 when size_t is 64 bits. Is it possible to have hash work with fixed width uint32_t instead of size_t?
No sorry it isn't. If you're just hashing strings, you might want to try the 32 bit version of murmurhash3: http://code.google.com/p/smhasher/wiki/MurmurHash3