Function rust_sodium::init_with_rng [] [src]

pub fn init_with_rng<T: Rng>(rng: &mut T) -> Result<(), i32>

Sets [libsodium's randombytes_implementation] (https://download.libsodium.org/doc/advanced/custom_rng.html) to use a Rust Rng implementation and initialises libsodium. See the rust_sodium-sys' docs for further details.