Function safe_crypto::init_with_rng [−][src]
pub fn init_with_rng<T: Rng>(rng: &mut T) -> Result<(), EncryptionError>
Initialise the key generation functions with a custom random number generator rng
.
Can be used for deterministic key generation in tests.
Returns an error in case of an random generator initialisation error.