pub fn new_random() -> Result<Self> {
        let mut key_buffer = Secret::with_len(KEY_BYTES)?;
        randombytes_into_secret(&mut key_buffer);
        Self::deserialize(key_buffer)
    }
/// Generate a new random key.
Generate a new random key.
Generate a new random key .
pub fn new_random() -> Result<Self> {
        let mut key_buffer = Secret::with_len(KEY_BYTES)?;
        randombytes_into_secret(&mut key_buffer);
        Self::deserialize(key_buffer)
    }
pub fn new_random ( ) -> Result < Self > { let mut key_buffer = Secret :: with_len ( KEY_BYTES ) ? ; randombytes_into_secret ( & mut key_buffer ) ; Self :: deserialize ( key_buffer ) }
Generate a new random key.
Generate a new random key .