pub fn sys_cprng_draw_once(&self, mut buf: UserOutPtr<u8>, len: usize) -> ZxResult {
        info!("cprng_draw_once: buf=({:?}; {:?})", buf, len);
        let mut res = vec![0u8; len];
        // Fill random bytes to the buffer
        kernel_hal::rand::fill_random(&mut res);
        buf.write_array(&res)?;
        Ok(())
    }
/// Draw random bytes from the kernel CPRNG.
///
/// This data should be suitable for cryptographic applications.
///
/// Clients that require a large volume of randomness should consider using these bytes to seed a user-space random number generator for better performance.
Draw random bytes from the kernel CPRNG.
This data should be suitable for cryptographic applications.

Clients that require a large volume of randomness should consider using these bytes to seed a user-space random number generator for better performance.
Draw random bytes from the kernel CPRNG . This data should be suitable for cryptographic applications . Clients that require a large volume of randomness should consider using these bytes to seed a user - space random number generator for better performance .
pub fn sys_cprng_draw_once(&self, mut buf: UserOutPtr<u8>, len: usize) -> ZxResult {
        info!("cprng_draw_once: buf=({:?}; {:?})", buf, len);
        let mut res = vec![0u8; len];
        // Fill random bytes to the buffer
        kernel_hal::rand::fill_random(&mut res);
        buf.write_array(&res)?;
        Ok(())
    }
pub fn sys_cprng_draw_once ( & self , mut buf : UserOutPtr < u8 > , len : usize ) -> ZxResult { info ! ( " " buf len ) ; let mut res = vec ! [ 0u8 len ] ; // Fill random bytes to the buffer kernel_hal :: rand :: fill_random ( & mut res ) ; buf . write_array ( & res ) ? ; Ok ( ( ) ) }
Draw random bytes from the kernel CPRNG.
Draw random bytes from the kernel CPRNG .
&self
buf
UserOutPtr<u8>
len
usize
&self
buf
UserOutPtr<u8>
len
usize