github.com/grailbio/base@v0.0.11/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  }