super-graph/core/utils.go
2020-06-03 18:19:07 -04:00

14 lines
194 B
Go

package core
import "hash/maphash"
// nolint: errcheck
func mkkey(h *maphash.Hash, k1 string, k2 string) uint64 {
h.WriteString(k1)
h.WriteString(k2)
v := h.Sum64()
h.Reset()
return v
}