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

Function fnvString

internal/bisect/bisect.go:720–726  ·  view source on GitHub ↗
(h uint64, x string)

Source from the content-addressed store, hash-verified

718}
719
720func fnvString(h uint64, x string) uint64 {
721 for i := 0; i < len(x); i++ {
722 h ^= uint64(x[i])
723 h *= prime64
724 }
725 return h
726}
727
728func fnvUint64(h uint64, x uint64) uint64 {
729 for i := 0; i < 8; i++ {

Callers 1

HashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…