MurmurHash.h
author Jens Alfke <jens@mooseyard.com>
Tue Apr 15 18:02:40 2008 -0700 (2008-04-15)
changeset 5 c9f2e0c7359a
permissions -rw-r--r--
Added some set utils.
     1 /*
     2  *  MurmurHash.h
     3  *  MYUtilities
     4  *
     5  *  This file created by Jens Alfke on 3/17/08.
     6  *  Algorithm & source code by Austin Appleby, released to public domain.
     7  *  <http://murmurhash.googlepages.com/>
     8  *
     9  */
    10 
    11 #include <stdint.h>
    12 #include <sys/types.h>
    13 
    14 /** An extremely efficient general-purpose hash function.
    15     Murmurhash is claimed to be more than twice as fast as the nearest competitor,
    16     and to offer better-distributed output with fewer collisions.
    17     It is, however not suitable for cryptographic use.
    18     Hash values will differ between bit- and little-endian CPUs, so they shouldn't
    19     be stored persistently or transmitted over the network.
    20  
    21     Written by Austin Appleby: <http://murmurhash.googlepages.com/> */
    22 
    23 uint32_t MurmurHash2 ( const void * key, size_t len, uint32_t seed );