func (ch *ConsistentHash) HashFunctionOrDefault() HashFunction {
	if ch.hashFunction != nil {
		return ch.hashFunction
	}
	return StableHash
}
// HashFunctionOrDefault returns the provided hash function or a default.
HashFunctionOrDefault returns the provided hash function or a default.
// HashFunctionOrDefault returns the provided hash function or a default .
func (ch *ConsistentHash) HashFunctionOrDefault() HashFunction {
	if ch.hashFunction != nil {
		return ch.hashFunction
	}
	return StableHash
}
func ( ch * ConsistentHash ) HashFunctionOrDefault ( ) HashFunction { if ch . hashFunction != nil { return ch . hashFunction } return StableHash }
HashFunctionOrDefault returns the provided hash function or a default.
HashFunctionOrDefault returns the provided hash function or a default .