pub fn generate() -> Result<Self, SecretKeyError> {
        // Limitation described in https://github.com/orion-rs/orion/issues/130
        if N < 1 || N > (isize::MAX as usize) {
            return Err(SecretKeyError);
        }

        let mut key = [0; N];
        OsRng.fill_bytes(&mut key);

        Ok(Self(key))
    }
/// Generates a new secret key, returning success if key created or
/// failing if the desired key length is not between 1 and `isize::MAX`
Generates a new secret key, returning success if key created or
failing if the desired key length is not between 1 and `isize::MAX`
Generates a new secret key returning success if key created or failing if the desired key length is not between 1 and ` isize :: MAX `
pub fn generate() -> Result<Self, SecretKeyError> {
        // Limitation described in https://github.com/orion-rs/orion/issues/130
        if N < 1 || N > (isize::MAX as usize) {
            return Err(SecretKeyError);
        }
        let mut key = [0; N];
        OsRng.fill_bytes(&mut key);
        Ok(Self(key))
    }
pub fn generate ( ) -> Result < Self , SecretKeyError > { // Limitation described in https://github.com/orion-rs/orion/issues/130 if N < 1 || N > ( isize :: MAX as usize ) { return Err ( SecretKeyError ) ; } let mut key = [ 0 ; N ] ; OsRng . fill_bytes ( & mut key ) ; Ok ( Self ( key ) ) }
Generates a new secret key, returning success if key created or
failing if the desired key length is not between 1 and `isize::MAX`
Generates a new secret key returning success if key created or failing if the desired key length is not between 1 and ` isize :: MAX `