mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 12:48:00 +00:00
Recursive election provider as fallback (#9648)
* Recursive election provider as fallback * minor fix * Fix integrity tests * Update frame/election-provider-multi-phase/src/lib.rs Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com> * Fix everything * fmt again * Fix test * Fix state machine warning * Fix build Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com>
This commit is contained in:
@@ -1579,7 +1579,8 @@ mod tests {
|
||||
let mut seed = [0; 16];
|
||||
for i in 0..50u32 {
|
||||
let mut child_infos = Vec::new();
|
||||
seed[0..4].copy_from_slice(&i.to_be_bytes()[..]);
|
||||
let seed_partial = &mut seed[0..4];
|
||||
seed_partial.copy_from_slice(&i.to_be_bytes()[..]);
|
||||
let mut rand = SmallRng::from_seed(seed);
|
||||
|
||||
let nb_child_trie = rand.next_u32() as usize % 25;
|
||||
|
||||
Reference in New Issue
Block a user