Function rust_sodium::crypto::box_::curve25519xsalsa20poly1305::gen_nonce [] [src]

pub fn gen_nonce() -> Nonce

gen_nonce() randomly generates a nonce

THREAD SAFETY: gen_nonce() is thread-safe provided that you have called rust_sodium::init() once before using any other function from rust_sodium.