-
-
Notifications
You must be signed in to change notification settings - Fork 463
Switch rand_os to use fuchsia-cprng crate in rand-0.6 #706
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
Conversation
The fuchsia team has spun out a new crate, [fuchsia-cprng](https://crates.io/crates/fuchsia-cprng), which reduces your exposure to changes in our syscalls, which are still not stable. This crate just exposes the CPRNG syscall, which we do not expect to change. Also note, the underlying syscall, [zx_cprng_draw](https://fuchsia.googlesource.com/zircon/+/HEAD/docs/syscalls/cprng_draw.md) no longer needs the loop. Instead, we guarantee that the buffer always be filled with randomness.
As in rust-random#706, fuchsia is replacing users of fuchsia-zircon with fuchsia-cprng since that reduces exposure to our changing syscalls.
As in rust-random#706, fuchsia is replacing users of fuchsia-zircon with fuchsia-cprng, since that reduces exposure to our changing syscalls. If this is accepted, could a new version be cut?
I think the travis failure is unrelated to this PR. I poked around, and it looks like it's unrelated broken doc links. I filed #710 to track it. |
Okay, nice! Why do you still have users on such old versions of Rand?
|
Thanks @dhardy! Unfortunately we have a bunch of dependencies that are still using the older versions: On 0.3:
On 0.4:
On 0.5:
It just takes time for us to get upstream packages to update, then get their dependents to update, and etc. |
As in rust-random#706, fuchsia is replacing users of fuchsia-zircon with fuchsia-cprng since that reduces exposure to our changing syscalls.
As in rust-random#706, fuchsia is replacing users of fuchsia-zircon with fuchsia-cprng, since that reduces exposure to our changing syscalls. If this is accepted, could a new version be cut?
I missed that rand got refactored, and the fuchsia update in rust-random#706 should have triggered a release for rand_os, not rand.
The fuchsia team has spun out a new crate, fuchsia-cprng, which reduces your exposure to changes in our syscalls, which are still not stable. This crate just exposes the CPRNG syscall, which we do not expect to change.
Also note, the underlying syscall, zx_cprng_draw no longer needs the loop. Instead, we guarantee that the buffer always be filled with randomness.
If this patch is accepted, would it be possible to get a release of rand_os? We also have some dependencies that are using 0.3, 0.4, and 0.5, so would you also be interested in patches for those versions as well?
Thanks!