qbtrade/pkg/util/fnv.go

10 lines
122 B
Go
Raw Normal View History

2024-06-27 14:42:38 +00:00
package util
import "hash/fnv"
func FNV32(s string) uint32 {
h := fnv.New32a()
h.Write([]byte(s))
return h.Sum32()
}