Merge remote-tracking branch 'origin/master' into gav-xcm-v3

This commit is contained in:
Keith Yeung
2022-03-21 08:30:34 -07:00
11 changed files with 43 additions and 30 deletions
+1 -3
View File
@@ -575,9 +575,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
}