We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 770a213 + b79d4fc commit 3a89228Copy full SHA for 3a89228
Cargo.toml
@@ -37,4 +37,4 @@ log = "0.3, <=0.3.8"
37
members = ["rand-derive"]
38
39
[target.'cfg(target_os = "fuchsia")'.dependencies]
40
-fuchsia-zircon = "0.3"
+fuchsia-zircon = "0.3.2"
src/os.rs
@@ -407,7 +407,7 @@ mod imp {
407
next_u64(&mut |v| self.fill_bytes(v))
408
}
409
fn fill_bytes(&mut self, v: &mut [u8]) {
410
- for s in v.chunks_mut(fuchsia_zircon::ZX_CPRNG_DRAW_MAX_LEN) {
+ for s in v.chunks_mut(fuchsia_zircon::sys::ZX_CPRNG_DRAW_MAX_LEN) {
411
let mut filled = 0;
412
while filled < s.len() {
413
match fuchsia_zircon::cprng_draw(&mut s[filled..]) {
0 commit comments