generate_nonce

Function generate_nonce 

Source
pub fn generate_nonce() -> Nonce
Expand description

Generate a new nonce for encrypting a cookie with the encode_cookie function

This uses the thread-local random number generator, which is guaranteed by the rand crate to produce cryptographically secure random data.