We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OsRng
CryptoRng
Problem: CryptoRng is not implemented for OsRng
Quick solution: `?
Details: It seems it only implements the fallible version now? Is this intentional?
I assume that this is may be intentional given OsRng may fail? Tried to find the discussion.
Notes
The text was updated successfully, but these errors were encountered:
CryptoRng now requires RngCore (thus replacing CryptoRngCore) which OsRng no longer implements. OsRng does implement TryCryptoRng.
RngCore
CryptoRngCore
TryCryptoRng
Yes, getrandom can technically fail, though this isn't usually observed.
getrandom
If you wish a panic-on-error version of OsRng, you may use OsRng.unwrap_err(). The result (UnwrapErr<OsRng>) should implement CryptoRng.
OsRng.unwrap_err()
UnwrapErr<OsRng>
Noted, we should update the CHANGELOG for rand_core.
rand_core
Sorry, something went wrong.
664fb3c
ThreadRng
Try/CryptoRng
Successfully merging a pull request may close this issue.
Common issues
Problem:
CryptoRng
is not implemented forOsRng
Quick solution: `?
Details: It seems it only implements the fallible version now? Is this intentional?
I assume that this is may be intentional given OsRng may fail? Tried to find the discussion.
Notes
The text was updated successfully, but these errors were encountered: