1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/MurmurHash.h Fri Apr 18 09:25:10 2008 -0700
1.3 @@ -0,0 +1,23 @@
1.4 +/*
1.5 + * MurmurHash.h
1.6 + * MYUtilities
1.7 + *
1.8 + * This file created by Jens Alfke on 3/17/08.
1.9 + * Algorithm & source code by Austin Appleby, released to public domain.
1.10 + * <http://murmurhash.googlepages.com/>
1.11 + *
1.12 + */
1.13 +
1.14 +#include <stdint.h>
1.15 +#include <sys/types.h>
1.16 +
1.17 +/** An extremely efficient general-purpose hash function.
1.18 + Murmurhash is claimed to be more than twice as fast as the nearest competitor,
1.19 + and to offer better-distributed output with fewer collisions.
1.20 + It is, however not suitable for cryptographic use.
1.21 + Hash values will differ between bit- and little-endian CPUs, so they shouldn't
1.22 + be stored persistently or transmitted over the network.
1.23 +
1.24 + Written by Austin Appleby: <http://murmurhash.googlepages.com/> */
1.25 +
1.26 +uint32_t MurmurHash2 ( const void * key, size_t len, uint32_t seed );