pub fn generate_rnd(&self) -> Result<[u8; 16], CommandResult> {
        self.write_command_header(
            Command::Rng,
            Format::Copy,
            Sequence::First,
            KeyID::SecretKey,
        )?;

        // Read the resulted random bytes
        let mut buf: [u8; 16] = [0; 16];
        self.read_command_bytes(PAGE_1_OFFSET, &mut buf);

        Ok(buf)
    }
/// Generates a vector of 128 random bits.
/// This function must be called after `init_rng`.
Generates a vector of 128 random bits.
This function must be called after `init_rng`.
Generates a vector of 128 random bits . This function must be called after ` init_rng ` .
pub fn generate_rnd(&self) -> Result<[u8; 16], CommandResult> {
        self.write_command_header(
            Command::Rng,
            Format::Copy,
            Sequence::First,
            KeyID::SecretKey,
        )?;
        // Read the resulted random bytes
        let mut buf: [u8; 16] = [0; 16];
        self.read_command_bytes(PAGE_1_OFFSET, &mut buf);
        Ok(buf)
    }
pub fn generate_rnd ( & self ) -> Result < [ u8 ; 16 ] , CommandResult > { self . write_command_header ( Command :: Rng , Format :: Copy , Sequence :: First , KeyID :: SecretKey , ) ? ; // Read the resulted random bytes let mut buf : [ u8 ; 16 ] = [ 0 ; 16 ] ; self . read_command_bytes ( PAGE_1_OFFSET , & mut buf ) ; Ok ( buf ) }
Generates a vector of 128 random bits.
Generates a vector of 128 random bits .
&self