super-graph/core/utils.go

16 lines
216 B
Go
Raw Normal View History

2020-04-13 02:35:31 +02:00
package core
import (
"github.com/cespare/xxhash/v2"
)
// nolint: errcheck
func mkkey(h *xxhash.Digest, k1 string, k2 string) uint64 {
h.WriteString(k1)
h.WriteString(k2)
v := h.Sum64()
h.Reset()
return v
}