Uh oh!
There was an error while loading. Please reload this page.
Hermit: use sys_read_entropy syscall - #333
Conversation
josephlr
commented
Jan 27, 2023
I agree that handing which platform Hermit supports is not our job, so this implementation should be fine. Could we add a documentation link? |
newpavlov
commented
Jan 27, 2023
I couldn't find a documentation to which we could link, so the only option for now is to link the source code. I am not sure such link would be useful. |
josephlr
commented
Jan 27, 2023
I think linking to the system crate (which is the preferred interface to Hermit) would be appropriate: https://hermitcore.github.io/libhermit-rs/hermit/fn.sys_read_entropy.html |
newpavlov
commented
Jan 27, 2023
Ah, good find! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
hugusmaximus
commented
Dec 30, 2023
This link is broken... |
newpavlov
commented
Jan 4, 2024
@hugusmaximus |
hugusmaximus
commented
Jan 4, 2024
via email
Yes, I found this info too... I was s bit confused. Thanks.
El jue., 4 ene. 2024 21:38, Artyom Pavlov ***@***.***>
escribió: …@hugusmaximus <https://github.com/hugusmaximus>
The documentation <https://docs.rs/getrandom> currently uses this link
<https://github.com/hermit-os/kernel/blob/315f58ff5efc81d9bf0618af85a59963ff55f8b1/src/syscalls/entropy.rs#L47-L55>
.
—
Reply to this email directly, view it on GitHub
<#333 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQVGKU2ITM6UXBNQRM4F7K3YM4HNTAVCNFSM6AAAAAAUIC72RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXG4ZTAMBTHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
* Hermit: use sys_read_entropy syscall * Add doc link
The syscall was implemented in hermit-os/kernel#640
On non-x86 targets it will return
-ENOSYS(which, frankly, IMO is quite bad), but I would say it's outside of our area of responsibility.cc @joboet@stlankes