2020-04-13 02:35:31 +02:00
|
|
|
package core
|
|
|
|
|
2020-06-04 00:19:07 +02:00
|
|
|
import "hash/maphash"
|
2020-04-13 02:35:31 +02:00
|
|
|
|
|
|
|
// nolint: errcheck
|
2020-06-04 00:19:07 +02:00
|
|
|
func mkkey(h *maphash.Hash, k1 string, k2 string) uint64 {
|
2020-04-13 02:35:31 +02:00
|
|
|
h.WriteString(k1)
|
|
|
|
h.WriteString(k2)
|
|
|
|
v := h.Sum64()
|
|
|
|
h.Reset()
|
|
|
|
|
|
|
|
return v
|
|
|
|
}
|