Function sodiumoxide::crypto::aead::chacha20poly1305_ietf::gen_nonce
[−]
[src]
pub fn gen_nonce() -> Nonce
gen_nonce()
randomly generates a nonce
THREAD SAFETY: gen_key()
is thread-safe provided that you have
called sodiumoxide::init()
once before using any other function
from sodiumoxide.