pub fn try_fill_u32(&mut self, dest: &mut [u32]) -> Result<(), Error> {
        for dw in dest {
            *dw = self.try_u32()?;
        }
        Ok(())
    }
/// Try to fill the destination buffer with random data.
///
/// This is the native data size for the RNG.
///
/// # Example
///
/// ```no_run
/// use stm32wlxx_hal::{
///     pac,
///     rng::{Clk, Rng},
/// };
///
/// let mut dp: pac::Peripherals = pac::Peripherals::take().unwrap();
/// let mut rng = Rng::new(dp.RNG, Clk::MSI, &mut dp.RCC);
///
/// let mut nonce: [u32; 4] = [0; 4];
/// rng.try_fill_u32(&mut nonce)?;
/// # Ok::<(), stm32wlxx_hal::rng::Error>(())
/// ```
Try to fill the destination buffer with random data.
This is the native data size for the RNG.
Try to fill the destination buffer with random data . This is the native data size for the RNG .
pub fn try_fill_u32(&mut self, dest: &mut [u32]) -> Result<(), Error> {
        for dw in dest {
            *dw = self.try_u32()?;
        }
        Ok(())
    }
pub fn try_fill_u32 ( & mut self , dest : & mut [ u32 ] ) -> Result < ( ) , Error > { for dw in dest { * dw = self . try_u32 ( ) ? ; } Ok ( ( ) ) }
Try to fill the destination buffer with random data.
Try to fill the destination buffer with random data .
&mut self
dest
&mut [u32]
example


let mut dp: pac::Peripherals = pac::Peripherals::take().unwrap();
let mut rng = Rng::new(dp.RNG, Clk::MSI, &mut dp.RCC).


let mut dp : pac :: Peripherals = pac :: Peripherals :: take () . unwrap () ; let mut rng = Rng :: new ( dp . RNG Clk :: MSI &mut dp . RCC ) .
ok::<(), stm32wlxx_hal::rng::error>(())
None