MCPcopy Create free account
hub / github.com/prometheus/common / hashAddByte

Function hashAddByte

model/fnv.go:38–42  ·  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

36
37// hashAddByte adds a byte to a fnv64a hash value, returning the updated hash.
38func hashAddByte(h uint64, b byte) uint64 {
39 h ^= uint64(b)
40 h *= prime64
41 return h
42}

Callers 5

LabelsToSignatureFunction · 0.85
labelSetToFingerprintFunction · 0.85
SignatureForLabelsFunction · 0.85
SignatureWithoutLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected