Function solana_gossip::weighted_shuffle::weighted_best
source · [−]Expand description
Returns the highest index after computing a weighted shuffle. Saves doing any sorting for O(n) max calculation.
Returns the highest index after computing a weighted shuffle. Saves doing any sorting for O(n) max calculation.