github.com/Schaudge/grailbase@v0.0.0-20240223061707-44c758a471c0/gtl/tests/rcu_map_hash.go (about) 1 package tests 2 3 import ( 4 "hash/fnv" 5 ) 6 7 func testhash(val string) uint64 { 8 h := fnv.New64() 9 h.Write([]byte(val)) 10 return h.Sum64() 11 }