github.com/criteo/command-launcher@v0.0.0-20230407142452-fb616f546e98/internal/helper/hash.go (about) 1 package helper 2 3 import "hash/fnv" 4 5 func Hash(s string) uint32 { 6 h := fnv.New32a() 7 h.Write([]byte(s)) 8 return h.Sum32() 9 }