pub fn from_rng(bit_length: usize, rng: &mut OsRng) -> Result
Expand description

Constructs a new SafePrime with the size of bit_length bits, sourced from an already-initialized OsRng.