MurmurHash.h
author Jens Alfke <jens@mooseyard.com>
Mon Aug 10 08:29:32 2009 -0700 (2009-08-10)
changeset 34 50c4f26bcc1b
permissions -rw-r--r--
Fixed signed/unsigned warnings in Base64.m.
     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 );