We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d03db9 commit 173cc42Copy full SHA for 173cc42
crates/wallet/src/wallet/coin_selection.rs
@@ -898,7 +898,7 @@ mod test {
898
.collect()
899
}
900
901
- fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut Vec<WeightedUtxo>) -> Amount {
+ fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut [WeightedUtxo]) -> Amount {
902
let utxos_picked_len = rng.gen_range(2..utxos.len() / 2);
903
utxos.shuffle(&mut rng);
904
utxos[..utxos_picked_len]
0 commit comments