Skip to main content

mcookie

Function mcookie 

Source
pub fn mcookie(
    extra_file: Option<&mut dyn Read>,
    max_size: Option<u64>,
    verbose: bool,
) -> Result<String>
Expand description

Generate a 128-bit random hexadecimal cookie.

If extra_file is provided, its contents (up to max_size bytes) are mixed into the randomness by XORing with the random bytes.