fn new(socket: File) -> RandScheme {
        RandScheme {
            socket,
            prng: ChaCha20Rng::from_seed(create_rdrand_seed()),
            prng_stat: Stat {
                st_mode: MODE_CHR | DEFAULT_PRNG_MODE,
                st_gid: 0,
                st_uid: 0,
                ..Default::default()
            },
            open_descriptors: BTreeMap::new(),
            next_fd: Wrapping(0),
        }
    }
/// Create new rand scheme from a message socket
Create new rand scheme from a message socket
Create new rand scheme from a message socket
fn new(socket: File) -> RandScheme {
        RandScheme {
            socket,
            prng: ChaCha20Rng::from_seed(create_rdrand_seed()),
            prng_stat: Stat {
                st_mode: MODE_CHR | DEFAULT_PRNG_MODE,
                st_gid: 0,
                st_uid: 0,
                ..Default::default()
            },
            open_descriptors: BTreeMap::new(),
            next_fd: Wrapping(0),
        }
    }
fn new ( socket : File ) -> RandScheme { RandScheme { socket , prng : ChaCha20Rng :: from_seed ( create_rdrand_seed ( ) ) , prng_stat : Stat { st_mode : MODE_CHR | DEFAULT_PRNG_MODE , st_gid : 0 , st_uid : 0 , .. Default :: default ( ) } , open_descriptors : BTreeMap :: new ( ) , next_fd : Wrapping ( 0 ) , } }
Create new rand scheme from a message socket
Create new rand scheme from a message socket
socket
File
socket
File