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 bf2dd25 commit 7474271Copy full SHA for 7474271
lightning/src/routing/router.rs
@@ -1528,7 +1528,7 @@ where L::Target: Logger {
1528
let mut path_nonce = [0u8; 8];
1529
path_nonce.copy_from_slice(&cur_node_id.as_slice()[..8]);
1530
let mut prng = ChaCha20::new(random_seed_bytes, &path_nonce);
1531
- let mut random_path_bytes = [0u8; 8];
+ let mut random_path_bytes = [0u8; ::core::mem::size_of::<usize>()];
1532
1533
// Pick a random path length in [1 .. 3]
1534
prng.process_in_place(&mut random_path_bytes);
0 commit comments