Versions in this module Expand all Collapse all v1 v1.2.1 Jun 2, 2023 Changes in this version + func StringHash(key string) uint64 v1.2.0 Mar 7, 2023 Changes in this version + const NormalizedMaxWeight + const NormalizedMinWeight + func Hash(key []byte) uint64 + func Sort(nodes []uint64, hash uint64) []uint64 + func SortByWeight(nodes []uint64, weights []float64, hash uint64) []uint64 + func SortHasherSliceByValue(slice []T, hash uint64) + func SortHasherSliceByWeightValue(slice []T, weights []float64, hash uint64) + func SortSliceByIndex(slice interface{}, hash uint64) + func SortSliceByValue(slice interface{}, hash uint64) + func SortSliceByWeightIndex(slice interface{}, weights []float64, hash uint64) + func SortSliceByWeightValue(slice interface{}, weights []float64, hash uint64) + func ValidateWeights(weights []float64) error + type Hasher interface + Hash func() uint64