Ultra 0.9.4
Loading...
Searching...
No Matches
ultra::murmurhash3 Class Reference

#include <hash_t.h>

Static Public Member Functions

static hash_t hash128 (const void *const, std::size_t, std::uint32_t=1973) noexcept

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 (https://burtleburtle.net/bob/hash/spooky.html) by Bob Jenkins.

Member Function Documentation

◆ hash128()

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

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

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