Skip to content

Commit 42c9914

Browse files
committed
f randomize seed
1 parent fb2b6b7 commit 42c9914

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration_tests_vss.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ async fn vss_v0_schema_backwards_compatibility() {
6767
let vss_base_url = std::env::var("TEST_VSS_BASE_URL").unwrap();
6868

6969
let storage_path = common::random_storage_path().to_str().unwrap().to_owned();
70-
let seed_bytes = [42u8; 64];
70+
let mut seed_bytes = [42u8; 64];
71+
rand::thread_rng().fill_bytes(&mut seed_bytes);
7172
let node_entropy = NodeEntropy::from_seed_bytes(seed_bytes);
7273

7374
// Setup a v0.6.2 `Node` persisted with the v0 scheme.
@@ -143,7 +144,8 @@ async fn vss_node_restart() {
143144
let vss_base_url = std::env::var("TEST_VSS_BASE_URL").unwrap();
144145

145146
let storage_path = common::random_storage_path().to_str().unwrap().to_owned();
146-
let seed_bytes = [42u8; 64];
147+
let mut seed_bytes = [42u8; 64];
148+
rand::thread_rng().fill_bytes(&mut seed_bytes);
147149
let node_entropy = NodeEntropy::from_seed_bytes(seed_bytes);
148150

149151
// Setup initial node and fund it.

0 commit comments

Comments
 (0)