-
Notifications
You must be signed in to change notification settings - Fork 735
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
Use libc::SYS_getrandom #839
Conversation
Can we just fix rust-lang/libc#659 (comment) and then use |
One particular issue is that
Then I think going with rust-lang/libc#1399 is the best bet. |
@briansmith disregard the above, I forgot that ring currently supports Android. So it looks like using Edit: For context see rust-lang/libc#1399 (comment) and boostorg/uuid#76 |
a0b65e6
to
e4992d8
Compare
This has been in libc for a while, so we don't need to increment the libc version in Cargo.toml. Note that we cannot use the `getrandom()` function from libc, as it isn't avalible on Android.
@briansmith this is ready to merge. rust-lang/libc#1399 was merged, but we can't use it because the bindings are only available for Linux, not Android. |
What's the specific goal that you are trying to achieve here? Is there something wrong with the constants that ring is currently using? Are you hoping to do another Linux port that isn't supported by ring yet? Or something else? |
|
Closing for similar reasons to #856, this is trying to bring over chunks from the |
This has been in
libc
for a while, so we don't need to increment thelibc
version in Cargo.toml. Note that we cannot use thegetrandom()
function from
libc
, as it isn't available on Android.Originally part of #744