Skip to content

Commit

Permalink
Fix seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Dec 20, 2023
1 parent 447e19f commit 367535c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/dapp-staking-v3/src/benchmarking/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,6 @@ fn trivial_fisher_yates_shuffle<T>(vector: &mut Vec<T>, random_seed: u64) {
for i in (1..vector.len()).rev() {
let j = rng % (i + 1);
vector.swap(i, j);
rng = (rng.wrapping_mul(6364793005) + 1) as usize; // Some random number generation
rng = (rng.wrapping_mul(8427637) + 1) as usize; // Some random number generation
}
}

0 comments on commit 367535c

Please sign in to comment.