Skip to content

Commit 739f16c

Browse files
committed
Update integration_tests_vss to updated rand dependency.
76194c7 bumped the `rand` dependency but because `integration_tests_vss` was already not passing it neglected to also update it for the new API. We do so here.
1 parent c4a6307 commit 739f16c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration_tests_vss.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::collections::HashMap;
1313

1414
use ldk_node::entropy::NodeEntropy;
1515
use ldk_node::Builder;
16-
use rand::{rng, Rng};
16+
use rand::{rng, RngCore};
1717

1818
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
1919
async fn channel_full_cycle_with_vss_store() {
@@ -63,7 +63,7 @@ async fn vss_v0_schema_backwards_compatibility() {
6363

6464
let storage_path = common::random_storage_path().to_str().unwrap().to_owned();
6565
let mut seed_bytes = [42u8; 64];
66-
rand::thread_rng().fill_bytes(&mut seed_bytes);
66+
rand::rng().fill_bytes(&mut seed_bytes);
6767
let node_entropy = NodeEntropy::from_seed_bytes(seed_bytes);
6868

6969
// Setup a v0.6.2 `Node` persisted with the v0 scheme.
@@ -131,7 +131,7 @@ async fn vss_node_restart() {
131131

132132
let storage_path = common::random_storage_path().to_str().unwrap().to_owned();
133133
let mut seed_bytes = [42u8; 64];
134-
rand::thread_rng().fill_bytes(&mut seed_bytes);
134+
rand::rng().fill_bytes(&mut seed_bytes);
135135
let node_entropy = NodeEntropy::from_seed_bytes(seed_bytes);
136136

137137
// Setup initial node and fund it.

0 commit comments

Comments
 (0)