mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +00:00
10 lines
131 B
Go
10 lines
131 B
Go
|
package max
|
||
|
|
||
|
import "hash/fnv"
|
||
|
|
||
|
func GenerateGroupID(s string) uint32 {
|
||
|
h := fnv.New32a()
|
||
|
h.Write([]byte(s))
|
||
|
return h.Sum32()
|
||
|
}
|