pub fn random<F, U>(f: F) -> U
    where
        F: FnOnce(RefMut<'_, T>) -> U,
    {
        Self::new(|mut s| {
            s.randomize();
            f(s)
        })
    }
/// Creates a new [`Secret`] filled with random bytes and invokes
/// the callback with a wrapper to the protected memory.
///
/// ```
/// # use runtime::Secret;
/// Secret::<u128>::random(|s| {
///     // s is filled with random bytes
/// })
/// ```
Creates a new [`Secret`] filled with random bytes and invokes
the callback with a wrapper to the protected memory.


Creates a new [ ` Secret ` ] filled with random bytes and invokes the callback with a wrapper to the protected memory .
pub fn random<F, U>(f: F) -> U
    where
        F: FnOnce(RefMut<'_, T>) -> U,
    {
        Self::new(|mut s| {
            s.randomize();
            f(s)
        })
    }
pub fn random < F , U > ( f : F ) -> U where F : FnOnce ( RefMut < ' _ , T > ) -> U , { Self :: new ( | mut s | { s . randomize ( ) ; f ( s ) } ) }
Creates a new [`Secret`] filled with random bytes and invokes
the callback with a wrapper to the protected memory.
Creates a new [ ` Secret ` ] filled with random bytes and invokes the callback with a wrapper to the protected memory .
f
F
f
F
use runtime::secret;
:::random(|s| {
s is filled with random bytes
})
```
::: random ( |s| { s is filled with random bytes } ) ` ` `