With https://github.com/nspcc-dev/hrw/pull/7 we can use normalization check before HRW sorting. Something like this in `GetSelection()` ```go if ss[0].Key == NodesBucket { if len(b.nodes) < count { return nil } nodes := make(Nodes, len(b.nodes)) copy(nodes, b.nodes) if len(pivot) != 0 { w := nodes.Weights() if hrw.ValidateWeights(w) != nil { return nil } hrw.SortSliceByWeightValue(nodes, w, pivotHash) } root.nodes = nodes[:count] return &root } ```
With nspcc-dev/hrw#7 we can use normalization check before HRW sorting. Something like this in
GetSelection()