MCPcopy Create free account
hub / github.com/cortexproject/cortex / hashAddByte

Function hashAddByte

pkg/ingester/client/fnv.go:42–46  ·  view source on GitHub ↗

hashAddByte adds a byte to a fnv64a hash value, returning the updated hash.

(h uint64, b byte)

Source from the content-addressed store, hash-verified

40
41// hashAddByte adds a byte to a fnv64a hash value, returning the updated hash.
42func hashAddByte(h uint64, b byte) uint64 {
43 h ^= uint64(b)
44 h *= prime64
45 return h
46}
47
48// HashNew32 initializies a new fnv32 hash value.
49func HashNew32() uint32 {

Callers 1

FastFingerprintFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected