fn try_fill_bytes(
        &mut self,
        dest: &mut [u8],
    ) -> Result<(), rand_core::Error> {
        self.fill(dest).map_err(|e| {
            core::num::NonZeroU32::new(
                rand_core::Error::CUSTOM_START + e as u32,
            )
            // This should never fail as long as no enum variant is equal to 0
            .expect("Internal hal error")
            .into()
        })
    }
/// Try to fill a slice with random data. Return an error if RNG fails.
Try to fill a slice with random data. Return an error if RNG fails.
Try to fill a slice with random data . Return an error if RNG fails .
fn try_fill_bytes(
        &mut self,
        dest: &mut [u8],
    ) -> Result<(), rand_core::Error> {
        self.fill(dest).map_err(|e| {
            core::num::NonZeroU32::new(
                rand_core::Error::CUSTOM_START + e as u32,
            )
            // This should never fail as long as no enum variant is equal to 0
            .expect("Internal hal error")
            .into()
        })
    }
fn try_fill_bytes ( & mut self , dest : & mut [ u8 ] , ) -> Result < ( ) , rand_core :: Error > { self . fill ( dest ) . map_err ( | e | { core :: num :: NonZeroU32 :: new ( rand_core :: Error :: CUSTOM_START + e as u32 , ) // This should never fail as long as no enum variant is equal to 0 . expect ( " " ) . into ( ) } ) }
Try to fill a slice with random data.
Try to fill a slice with random data .
&mut self
dest
&mut [u8]
&mut self
dest
&mut [u8]