Skip to content

Commit 8c00333

Browse files
committed
dependency: bump rand version
1 parent af5f8d6 commit 8c00333

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ features = ["rand"]
1818

1919
[dependencies]
2020
bitcoin-units = "1.0.0-rc.0"
21-
rand = { version = "0.8.5", optional = true }
21+
rand = { version = "0.9.2", optional = true }
2222

2323
[dev-dependencies]
2424
bitcoin-units = { version = "1.0.0-rc.0", features = ["arbitrary"] }
2525
criterion = "0.6"
2626
bitcoin-coin-selection = {path = ".", features = ["rand"]}
27-
rand = "0.8.5"
27+
rand = "0.9.2"
2828
arbitrary = { version = "1", features = ["derive"] }
2929
arbtest = "0.3.1"
3030
exhaustigen = "0.1.0"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use std::cmp::Ordering;
2323
use bitcoin_units::{Amount, FeeRate, SignedAmount, Weight};
2424
#[cfg(feature = "rand")]
2525
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
26-
use rand::thread_rng;
26+
use rand::rng;
2727

2828
pub use crate::branch_and_bound::branch_and_bound;
2929
pub use crate::coin_grinder::coin_grinder;
@@ -176,7 +176,7 @@ pub fn select_coins<'a, T: IntoIterator<Item = &'a WeightedUtxo> + std::marker::
176176
let bnb_result = branch_and_bound(target, cost_of_change, max_weight, weighted_utxos);
177177

178178
if bnb_result.is_err() {
179-
single_random_draw(target, max_weight, &mut thread_rng(), weighted_utxos)
179+
single_random_draw(target, max_weight, &mut rng(), weighted_utxos)
180180
} else {
181181
bnb_result
182182
}

0 commit comments

Comments
 (0)