Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto-bigint: add rand feature #508

Merged
merged 1 commit into from
Jun 27, 2021
Merged

Conversation

tarcieri
Copy link
Member

Adds initial support for random number generation, for both UInt and Limb.

Also adds a UInt::random_mod function which generates a random number within the range of a provided modulus using rejection sampling.

Adds initial support for random number generation, for both `UInt` and
`Limb`.

Also adds a `UInt::random_mod` function which generates a random number
within the range of a provided modulus using rejection sampling.
@tarcieri tarcieri merged commit 950e62c into master Jun 27, 2021
@tarcieri tarcieri deleted the crypto-bigint/rand-feature branch June 27, 2021 01:16
@tarcieri tarcieri mentioned this pull request Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant