//go:linkname runtime_rand runtime.rand func runtime_rand() uint64 //go:linkname runtime_memhash runtime.memhash //go:noescape func runtime_memhash(p unsafe.Pointer, seed, s uintptr) uintptr func rthash(buf []byte, seed uint64) uint64 { … } func rthashString(s string, state uint64) uint64 { … } func randUint64() uint64 { … } func comparableF[T comparable](h *Hash, v T) { … }