jens@1: /* jens@1: * MurmurHash.h jens@1: * MYUtilities jens@1: * jens@1: * This file created by Jens Alfke on 3/17/08. jens@1: * Algorithm & source code by Austin Appleby, released to public domain. jens@1: * jens@1: * jens@1: */ jens@1: jens@1: #include jens@1: #include jens@1: jens@1: /** An extremely efficient general-purpose hash function. jens@1: Murmurhash is claimed to be more than twice as fast as the nearest competitor, jens@1: and to offer better-distributed output with fewer collisions. jens@1: It is, however not suitable for cryptographic use. jens@1: Hash values will differ between bit- and little-endian CPUs, so they shouldn't jens@1: be stored persistently or transmitted over the network. jens@1: jens@1: Written by Austin Appleby: */ jens@1: jens@1: uint32_t MurmurHash2 ( const void * key, size_t len, uint32_t seed );