bbgo_origin/pkg/exchange/max/group_id.go

10 lines
131 B
Go
Raw Normal View History

2021-03-22 09:26:06 +00:00
package max
import "hash/fnv"
func GenerateGroupID(s string) uint32 {
h := fnv.New32a()
h.Write([]byte(s))
return h.Sum32()
}