package hash
import "github.com/nats-io/gnatsd/hash"
Collection of high performance 32-bit hash functions.
Index ¶
- Constants
- func Bernstein(data []byte) uint32
- func FNV1A(data []byte) uint32
- func Jesteress(data []byte) uint32
- func Meiyan(data []byte) uint32
- func Murmur3(data []byte, seed uint32) uint32
- func Yorikke(data []byte) uint32
Constants ¶
const M3Seed = uint32(0x9747b28c)
A default seed for Murmur3
Functions ¶
func Bernstein ¶
Generates a Bernstein Hash.
func FNV1A ¶
Generates an FNV1A Hash [http://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function]
func Jesteress ¶
Jesteress derivative of FNV1A from [http://www.sanmayce.com/Fastest_Hash/]
func Meiyan ¶
Meiyan derivative of FNV1A from [http://www.sanmayce.com/Fastest_Hash/]
func Murmur3 ¶
Generates a Murmur3 Hash [http://code.google.com/p/smhasher/wiki/MurmurHash3] Does not generate intermediate objects.
func Yorikke ¶
Yorikke derivative of FNV1A from [http://www.sanmayce.com/Fastest_Hash/]
Source Files ¶
- Version
- v0.5.1
- Published
- Apr 25, 2014
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 hour ago –
Tools for package owners.