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-common: make all generate_* functions fallible #1378

Closed

Conversation

tarcieri
Copy link
Member

Redux of #1377: removes the try_ methods in lieu of having all generate* methods consistently return Result<T, rand_core::Error>.

Redux of #1377: removes the `try_` methods in lieu of having all
`generate*` methods consistently return `Result<T, rand_core::Error>`.
@newpavlov
Copy link
Member

Heh, I implemented #1379 in parallel. I think the ony difference is that it uses getrandom directly without relying on rand_core.

@tarcieri
Copy link
Member Author

Okay, I do like that.

@tarcieri tarcieri closed this Nov 11, 2023
@tarcieri tarcieri deleted the crypto-common/fully-fallible-generate-functions branch November 11, 2023 21:44
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