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?
to your account
Provide at least:
The text was updated successfully, but these errors were encountered:
We implement random_bytes...perhaps this is just a new alias?
Sorry, something went wrong.
Looks like it was an alias that became a wrapper method, and we just never added it (or mistakenly removed it).
Trivial fix coming.
It looks like there's specs for Random#bytes here but nothing for SecureRandom.bytes here. Could you have a look and see if we can share or duplicate these specs? cc @eregon for help moving this to something shared, if that's necessary.
FWIW this following workaround basically does what I did:
class << SecureRandom
def bytes(n); random_bytes(n); end
alias gen_random bytes
Yeah, I know its a trivial alias, I just filed in the interest of maintaining general compatibility. Thanks for knocking this one out :)
Successfully merging a pull request may close this issue.