@@ -52,7 +52,7 @@ use clap::Parser;
5252use colored:: Colorize ;
5353use core:: str:: FromStr ;
5454use indexmap:: IndexMap ;
55- use rand:: { Rng , SeedableRng } ;
55+ use rand:: { RngExt , SeedableRng } ;
5656use rand_chacha:: ChaChaRng ;
5757use serde:: { Deserialize , Serialize } ;
5858
@@ -401,7 +401,7 @@ impl Start {
401401 }
402402 // Ensure the private key is provided to the CLI, except for clients or nodes in development mode.
403403 ( None , None ) => match self . client {
404- true => Account :: new ( & mut rand:: thread_rng ( ) ) ,
404+ true => Account :: new ( & mut rand:: rng ( ) ) ,
405405 false => bail ! ( "Missing the '--private-key' or '--private-key-file' argument" ) ,
406406 } ,
407407 // Ensure only one private key flag is provided to the CLI.
@@ -575,7 +575,7 @@ impl Start {
575575 members. entry ( * validator_address) . and_modify ( |( stake, _, _) | * stake += amount) . or_insert ( (
576576 * amount,
577577 true ,
578- rng. gen_range ( 0 ..100 ) ,
578+ rng. random_range ( 0 ..100 ) ,
579579 ) ) ;
580580 }
581581 // Construct the committee.
@@ -591,7 +591,7 @@ impl Start {
591591 // Construct the committee members and distribute stakes evenly among committee members.
592592 let members = development_addresses
593593 . iter ( )
594- . map ( |address| ( * address, ( stake_per_member, true , rng. gen_range ( 0 ..100 ) ) ) )
594+ . map ( |address| ( * address, ( stake_per_member, true , rng. random_range ( 0 ..100 ) ) ) )
595595 . collect :: < IndexMap < _ , _ > > ( ) ;
596596
597597 // Construct the bonded balances.
0 commit comments