pub fn generate_preshared() -> Self {
        use rand_core::{OsRng, RngCore};

        let mut key = [0u8; 32];
        OsRng.fill_bytes(&mut key);
        Self(key)
    }
/// Generates and returns a new preshared key.
Generates and returns a new preshared key.
Generates and returns a new preshared key .
pub fn generate_preshared() -> Self {
        use rand_core::{OsRng, RngCore};
        let mut key = [0u8; 32];
        OsRng.fill_bytes(&mut key);
        Self(key)
    }
pub fn generate_preshared ( ) -> Self { use rand_core :: { OsRng , RngCore } ; let mut key = [ 0u8 ; 32 ] ; OsRng . fill_bytes ( & mut key ) ; Self ( key ) }
Generates and returns a new preshared key.
Generates and returns a new preshared key .