@@ -605,7 +605,7 @@ impl<'a> RandomTxMaker<'a> {
605605 } else {
606606 ( Vec :: new ( ) , Vec :: new ( ) )
607607 }
608- } else if rng. gen_bool ( 0.1 ) {
608+ } else if rng. random_bool ( 0.1 ) {
609609 if token_data. can_be_frozen ( ) {
610610 // Freeze
611611 let new_nonce = self . get_next_nonce ( AccountType :: Token ( token_id) ) ;
@@ -634,7 +634,7 @@ impl<'a> RandomTxMaker<'a> {
634634 } else {
635635 ( Vec :: new ( ) , Vec :: new ( ) )
636636 }
637- } else if rng. gen_bool ( 0.1 ) {
637+ } else if rng. random_bool ( 0.1 ) {
638638 // Change token authority
639639 let new_nonce = self . get_next_nonce ( AccountType :: Token ( token_id) ) ;
640640 let new_authority =
@@ -658,7 +658,7 @@ impl<'a> RandomTxMaker<'a> {
658658 ) ;
659659
660660 ( vec ! [ account_input, fee_input] , vec ! [ fee_change_output] )
661- } else if rng. gen_bool ( 0.1 ) {
661+ } else if rng. random_bool ( 0.1 ) {
662662 // Change token metadata uri
663663 let new_nonce = self . get_next_nonce ( AccountType :: Token ( token_id) ) ;
664664 let max_len = self . chainstate . get_chain_config ( ) . token_max_uri_len ( ) ;
@@ -681,7 +681,7 @@ impl<'a> RandomTxMaker<'a> {
681681
682682 ( vec ! [ account_input, fee_input] , vec ! [ fee_change_output] )
683683 } else if !token_data. is_locked ( ) {
684- if rng. gen_bool ( 0.9 ) {
684+ if rng. random_bool ( 0.9 ) {
685685 let circulating_supply = tokens_cache. get_circulating_supply ( & token_id) . unwrap ( ) ;
686686
687687 // mint
@@ -808,7 +808,7 @@ impl<'a> RandomTxMaker<'a> {
808808 }
809809 TxOutput :: CreateStakePool ( pool_id, _)
810810 | TxOutput :: ProduceBlockFromStake ( _, pool_id) => {
811- if self . staking_pool . is_none_or ( |id| id != * pool_id) && rng. gen_bool ( 0.1 ) {
811+ if self . staking_pool . is_none_or ( |id| id != * pool_id) && rng. random_bool ( 0.1 ) {
812812 let staker_balance = pos_accounting_cache
813813 . get_pool_data ( * pool_id)
814814 . unwrap ( )
@@ -1087,7 +1087,7 @@ impl<'a> RandomTxMaker<'a> {
10871087
10881088 TxOutput :: CreateStakePool ( dummy_pool_id, Box :: new ( pool_data) )
10891089 } else {
1090- if rng. gen_bool ( 0.3 ) {
1090+ if rng. random_bool ( 0.3 ) {
10911091 // Send coins to random delegation
10921092 if let Some ( ( delegation_id, _) ) = get_random_delegation_data (
10931093 rng,
@@ -1271,7 +1271,7 @@ impl<'a> RandomTxMaker<'a> {
12711271 }
12721272 }
12731273 }
1274- } else if rng. gen_bool ( 0.4 ) && !self . account_command_used {
1274+ } else if rng. random_bool ( 0.4 ) && !self . account_command_used {
12751275 // unmint
12761276 let token_data = tokens_cache. get_token_data ( & token_id) . unwrap ( ) ;
12771277
@@ -1317,7 +1317,7 @@ impl<'a> RandomTxMaker<'a> {
13171317 self . account_command_used = true ;
13181318 }
13191319 }
1320- } else if rng. gen_bool ( 0.4 ) && self . order_can_be_created && atoms > 0 {
1320+ } else if rng. random_bool ( 0.4 ) && self . order_can_be_created && atoms > 0 {
13211321 // create order to exchange part of available tokens for coins or other tokens
13221322 let random_token = get_random_token ( rng, self . tokens_store , tokens_cache) ;
13231323 let ask_value = if rng. random :: < bool > ( )
0 commit comments