Skip to main content

generate_nonce

Function generate_nonce 

Source
pub fn generate_nonce() -> Result<String, Error>
Expand description

A fresh request nonce: MIN_NONCE_BYTES bytes from the OS CSPRNG, padded base64.

ยงErrors

Returns an error when the operating system cannot supply randomness.