Function random_key

Source
pub fn random_key(size: usize) -> Result<Vec<u8>>
Expand description

Generate a random key of specified size

§Arguments

  • size - The size of the key in bytes

§Returns

A random key of the specified size