folly::hash::murmurHash64

Implementation of MurmurHash2 hashing algorithm for 64-bit platforms.

Synopsis

Declared in <folly/hash/MurmurHash.h>

constexpr
uint64_t
murmurHash64(
    char const* key,
    std::size_t len,
    uint64_t seed) noexcept;

Description

https://en.wikipedia.org/wiki/MurmurHash

Return Value

The 64-bit MurmurHash2 hash of the input

Parameters

NameDescription
keyPointer to the bytes to hash
lenNumber of bytes to hash
seedSeed value that perturbs the hash