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 getrandom feature that enables builtin new_random constructors (see issue #85) #103

Conversation

cipriancraciun
Copy link
Contributor

This pull request is trivial and just adds a helper function new_random for EphemeralSecret, StaticSecret and ReusableSecret that just delegates to Self::new(&mut rand_core::OsRng), thus solving #85.

This feature is hidden behind the getrandom feature (that enables rand_core/getrandom).

There are no added tests, because the implementation is trivial.

pinkforest added a commit to pinkforest/x25519-dalek that referenced this pull request Mar 12, 2023
This is a reroll of dalek-cryptography#103 to correct branch

Co-authored-by: Ciprian Dorin Craciun <[email protected]>
@pinkforest pinkforest mentioned this pull request Mar 12, 2023
@pinkforest
Copy link
Contributor

This was in the wrong branch so #113 supercedes this - I added co-authored-by so you get the credit ;)

@cipriancraciun
Copy link
Contributor Author

@pinkforest no problem, thanks for the credit.

I'll close this pull request then.

@pinkforest pinkforest mentioned this pull request Mar 21, 2023
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.

2 participants