Vita
Static Public Member Functions | List of all members
vita::murmurhash3 Class Reference

MurmurHash3 (https://github.com/aappleby/smhasher) by Austin Appleby. More...

#include <cache_hash.h>

Static Public Member Functions

static hash_t hash128 (const void *const, std::size_t, std::uint32_t=1973)
 Hashes a single message in one call, return 128-bit output. More...
 

Detailed Description

MurmurHash3 (https://github.com/aappleby/smhasher) by Austin Appleby.

MurmurHash3 is a relatively simple non-cryptographic hash algorithm. It's noted for being fast, with excellent distribution, avalanche behavior and overall collision resistance.

Note
An interesting alternative is SpookyHash (http://burtleburtle.net/bob/hash/spooky.html) by Bob Jenkins.

Definition at line 100 of file cache_hash.h.

Member Function Documentation

◆ hash128()

hash_t vita::murmurhash3::hash128 ( const void * const  data,
std::size_t  len,
std::uint32_t  seed = 1973 
)
inlinestatic

Hashes a single message in one call, return 128-bit output.

Parameters
[in]datadata stream to be hashed
[in]lenlength, in bytes, of data
[in]seedinitialization seed
Returns
the signature of data

Definition at line 119 of file cache_hash.h.


The documentation for this class was generated from the following file: