diff -r 000000000000 -r 2d492d8c2053 MurmurHash.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MurmurHash.h Fri Apr 18 09:25:10 2008 -0700 @@ -0,0 +1,23 @@ +/* + * MurmurHash.h + * MYUtilities + * + * This file created by Jens Alfke on 3/17/08. + * Algorithm & source code by Austin Appleby, released to public domain. + * + * + */ + +#include +#include + +/** An extremely efficient general-purpose hash function. + Murmurhash is claimed to be more than twice as fast as the nearest competitor, + and to offer better-distributed output with fewer collisions. + It is, however not suitable for cryptographic use. + Hash values will differ between bit- and little-endian CPUs, so they shouldn't + be stored persistently or transmitted over the network. + + Written by Austin Appleby: */ + +uint32_t MurmurHash2 ( const void * key, size_t len, uint32_t seed );