express intent better (#1099)

This commit is contained in:
Squirrel
2022-03-21 14:47:47 +00:00
committed by GitHub
parent f6fa460911
commit 2db0a69f66
+1 -3
View File
@@ -571,9 +571,7 @@ impl<T: Config> Pallet<T> {
let mut shuffled = (0..len).collect::<Vec<_>>();
for i in 0..len {
let j = (rng.next_u32() as usize) % len;
let a = shuffled[i];
shuffled[i] = shuffled[j];
shuffled[j] = a;
shuffled.as_mut_slice().swap(i, j);
}
shuffled
}