Module pumpkin::prime [] [src]

Generates cryptographically secure prime numbers.

Functions

from_rng

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

new

Constructs a new prime number with a size of bit_length bits.