bbgo/pkg/util/fnv.go

10 lines
122 B
Go
Raw Normal View History

package util
import "hash/fnv"
func FNV32(s string) uint32 {
h := fnv.New32a()
h.Write([]byte(s))
return h.Sum32()
}