MCPcopy Create free account
hub / github.com/imroc/req / fnv

Function fnv

internal/bisect/bisect.go:714–718  ·  view source on GitHub ↗
(h uint64, x byte)

Source from the content-addressed store, hash-verified

712)
713
714func fnv(h uint64, x byte) uint64 {
715 h ^= uint64(x)
716 h *= prime64
717 return h
718}
719
720func fnvString(h uint64, x string) uint64 {
721 for i := 0; i < len(x); i++ {

Callers 1

HashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected