-
Notifications
You must be signed in to change notification settings - Fork 182
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
Hermit is not currently supported by getrandom #199
Comments
Yes, it's an issue, since it causes workarounds like this. In user code it can be worked around slightly more elegantly using the |
I think the most reasonable approach here is the following:
|
Buffer-based API is not important here, it's the fact that Hermit randomness API always fails on ARM targets. To say the least, it's not normal and should be fixed.
I don't think it's a good behavior for all targets. It effectively means introduction of potential silent failures just because one target has an always failing randomness source. |
Fixed by #333 |
Hermitcore is a unikernel OS, written in Rust, with Tier 3
libstd
support foraarch64-unknown-hermit
andx86_64-unknown-hermit
.See #198 and #183 for previous attempts at this.
Other PRs/issues of note:
hermit-abi
: add functions to create random numbers hermit-os/hermit-rs#64hermit-abi
alwaysno_std
: Allow hermit-abi to build without std hermit-os/hermit-rs#103libhermit-rs
: Fix broken rdrand implementation hermit-os/kernel#154We should figure out:
getrandom
secure_rand64
API sufficient?aarch64
, is that an issue?The text was updated successfully, but these errors were encountered: