// Hash returns a usable hash and seed for use with the *WithHints functions.
// This is the only thread-safe operation of the Map.
Hash returns a usable hash and seed for use with the *WithHints functions.
This is the only thread-safe operation of the Map.
// Hash returns a usable hash and seed for use with the * WithHints functions . // This is the only thread - safe operation of the Map .
func (m *Map) Hash(key string) (hash, seed uint32) {
	seed = atomic.LoadUint32(&m.seed)
	if m.hashFn != nil {
		hash = m.hashFn(key, seed)
	} else {
		hash = murmur3.Sum32Seed(key, seed)
	}
	return
}
func ( m * Map ) Hash ( key string ) ( hash , seed uint32 ) { seed = atomic . LoadUint32 ( & m . seed ) if m . hashFn != nil { hash = m . hashFn ( key , seed ) } else { hash = murmur3 . Sum32Seed ( key , seed ) } return }
Hash returns a usable hash and seed for use with the *WithHints functions.
Hash returns a usable hash and seed for use with the * WithHints functions .