MurmurHash.h
author Jens Alfke <jens@mooseyard.com>
Fri Apr 18 09:25:10 2008 -0700 (2008-04-18)
changeset 6 2d492d8c2053
permissions -rw-r--r--
Added -reopenWith:.
     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 );