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

Add AllowedRng trait #187

Merged
merged 3 commits into from
Oct 31, 2022
Merged

Add AllowedRng trait #187

merged 3 commits into from
Oct 31, 2022

Conversation

benr-ml
Copy link
Contributor

@benr-ml benr-ml commented Oct 31, 2022

We should be more restrictive with the RNG we work with. This adds a trait for that.
(Updating the existing APIs will be done in a follow up PR).

The default for StdRng and ThreadRng is ChaCha12 (rust-random/rand#932)

Ideally our callers should use something like StdRng::from_rng(rand::rngs::OsRng) or just thread_rng, but for now we don't restrict that.

@benr-ml benr-ml marked this pull request as ready for review October 31, 2022 10:11
@benr-ml benr-ml merged commit 3c2694a into main Oct 31, 2022
@benr-ml benr-ml deleted the ben-allowed-rng branch October 31, 2022 14:43
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.

None yet

3 participants