use randombytes_into;
/// The `Nonce` trait allows for generic construction
/// from an array of bytes, e.g. to generically create random nonces.
/// `gen_random_nonce()` randomly generates a nonce for symmetric encryption
///
/// THREAD SAFETY: `gen_random_nonce()` is thread-safe provided that you have
/// called `sodiumoxide::init()` once before using any other function
/// from sodiumoxide.
///
/// NOTE: When using primitives with short nonces (e.g. salsa20, salsa208, salsa2012)
/// do not use random nonces since the probability of nonce-collision is not negligible