mptcpd
Multipath TCP Daemon
Loading...
Searching...
No Matches
Macros | Functions
murmur_hash.c File Reference
#include <mptcpd/private/murmur_hash.h>
Include dependency graph for murmur_hash.c:

Macros

#define FORCE_INLINE   inline
 
#define FALLTHROUGH
 

Functions

unsigned int mptcpd_murmur_hash3 (void const *key, int len, uint32_t seed)
 Generate hash of key using the MurmurHash3 algorithm.
 

Detailed Description

This file incorporates work covered by the following notice: MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code.

Changes relative to the original:

See also
https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp

Function Documentation

◆ mptcpd_murmur_hash3()

unsigned int mptcpd_murmur_hash3 ( void const *  key,
int  len,
uint32_t  seed 
)

Generate hash of key using the MurmurHash3 algorithm.

Parameters
[in]keyKey value to be hashed.
[in]lenLength of key in bytes.
[in]seedInitial value of hash prior to hashing key.
Returns
Hash of key.
Attention
The generated hash value is not cryptographically strong.
See also
https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp