pub fn new_rand<R: rand::Rng>(rng: &mut R, pubkey: Option<Pubkey>) -> Self {
        let delay = 10 * 60 * 1000; // 10 minutes
        let now = timestamp() - delay + rng.gen_range(0, 2 * delay);
        let pubkey = pubkey.unwrap_or_else(solana_sdk::pubkey::new_rand);
        ContactInfo::new_localhost(&pubkey, now)
    }
/// New random ContactInfo for tests and simulations.
New random ContactInfo for tests and simulations.
New random ContactInfo for tests and simulations .
pub fn new_rand<R: rand::Rng>(rng: &mut R, pubkey: Option<Pubkey>) -> Self {
        let delay = 10 * 60 * 1000; // 10 minutes
        let now = timestamp() - delay + rng.gen_range(0, 2 * delay);
        let pubkey = pubkey.unwrap_or_else(solana_sdk::pubkey::new_rand);
        ContactInfo::new_localhost(&pubkey, now)
    }
pub fn new_rand < R : rand :: Rng > ( rng : & mut R , pubkey : Option < Pubkey > ) -> Self { let delay = 10 * 60 * 1000 ; // 10 minutes let now = timestamp ( ) - delay + rng . gen_range ( 0 , 2 * delay ) ; let pubkey = pubkey . unwrap_or_else ( solana_sdk :: pubkey :: new_rand ) ; ContactInfo :: new_localhost ( & pubkey , now ) }
New random ContactInfo for tests and simulations.
New random ContactInfo for tests and simulations .
rng
&mut R
pubkey
Option<Pubkey>