[][src]Function noise_sodiumoxide::init

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

Initialize the library. Call the sodium_init function.

sodium_init() initializes the library and should be called before any other function provided by Sodium. It is safe to call this function more than once and from different threads -- subsequent calls won't have any effects. After this function returns, all of the other functions provided by Sodium will be thread-safe.

Libsodium doc: https://libsodium.gitbook.io/doc/usage.