Function sodiumoxide::init[][src]

pub fn init() -> Result<(), ()>
Expand description

init() initializes the sodium library and chooses faster versions of the primitives if possible. init() also makes the random number generation functions (gen_key, gen_keypair, gen_nonce, randombytes, randombytes_into) thread-safe

init() returns Ok if initialization succeeded and Err if it failed.