pub fn random(rng: &mut TestRng) -> Self {
        let public_key =
            PublicKey::from(&SecretKey::ed25519_from_bytes(rng.gen::<[u8; 32]>()).unwrap());
        let balance = Motes::new(rng.gen());
        let validator = rng.gen();

        AccountConfig {
            public_key,
            balance,
            validator,
        }
    }
/// 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 public_key =
            PublicKey::from(&SecretKey::ed25519_from_bytes(rng.gen::<[u8; 32]>()).unwrap());
        let balance = Motes::new(rng.gen());
        let validator = rng.gen();
        AccountConfig {
            public_key,
            balance,
            validator,
        }
    }
pub fn random ( rng : & mut TestRng ) -> Self { let public_key = PublicKey :: from ( & SecretKey :: ed25519_from_bytes ( rng . gen :: < [ u8 ; 32 ] > ( ) ) . unwrap ( ) ) ; let balance = Motes :: new ( rng . gen ( ) ) ; let validator = rng . gen ( ) ; AccountConfig { public_key , balance , validator , } }
Generates a random instance using a `TestRng`.
Generates a random instance using a ` TestRng ` .
rng
&mut TestRng
rng
&mut TestRng