pub fn random(rng: &mut TestRng) -> Self {
        let bonded_amount = Motes::new(U512::from(rng.gen::<u64>()));
        let delegation_rate = rng.gen();

        ValidatorConfig {
            bonded_amount,
            delegation_rate,
        }
    }
/// Generates a random instance using a `TestRng`.
Generates a random instance using a `TestRng`.
Generates a random instance using a ` TestRng ` .
pub fn random(rng: &mut TestRng) -> Self {
        let bonded_amount = Motes::new(U512::from(rng.gen::<u64>()));
        let delegation_rate = rng.gen();
        ValidatorConfig {
            bonded_amount,
            delegation_rate,
        }
    }
pub fn random ( rng : & mut TestRng ) -> Self { let bonded_amount = Motes :: new ( U512 :: from ( rng . gen :: < u64 > ( ) ) ) ; let delegation_rate = rng . gen ( ) ; ValidatorConfig { bonded_amount , delegation_rate , } }
Generates a random instance using a `TestRng`.
Generates a random instance using a ` TestRng ` .
rng
&mut TestRng
rng
&mut TestRng