12 lines
164 B
Go
12 lines
164 B
Go
package dual_selector
|
|
|
|
import "hash/maphash"
|
|
|
|
type key string
|
|
|
|
var seed = maphash.MakeSeed()
|
|
|
|
func (k key) Sum() uint64 {
|
|
return maphash.String(seed, string(k))
|
|
}
|