Skip to content

Commit 7b0c29f

Browse files
authored
Merge pull request #173 from raggi/zircon
fuchsia: magenta was renamed zircon
2 parents ace47cf + 6024981 commit 7b0c29f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ log = "0.3.0"
2727
members = ["rand-derive"]
2828

2929
[target.'cfg(target_os = "fuchsia")'.dependencies]
30-
magenta = "^0.1.1"
30+
fuchsia-zircon = "^0.2.1"

src/os.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ mod imp {
383383

384384
#[cfg(target_os = "fuchsia")]
385385
mod imp {
386-
extern crate magenta;
386+
extern crate fuchsia_zircon;
387387

388388
use std::io;
389389
use Rng;
@@ -407,10 +407,10 @@ mod imp {
407407
next_u64(&mut |v| self.fill_bytes(v))
408408
}
409409
fn fill_bytes(&mut self, v: &mut [u8]) {
410-
for s in v.chunks_mut(magenta::MX_CPRNG_DRAW_MAX_LEN) {
410+
for s in v.chunks_mut(fuchsia_zircon::ZX_CPRNG_DRAW_MAX_LEN) {
411411
let mut filled = 0;
412412
while filled < s.len() {
413-
match magenta::cprng_draw(&mut s[filled..]) {
413+
match fuchsia_zircon::cprng_draw(&mut s[filled..]) {
414414
Ok(actual) => filled += actual,
415415
Err(e) => panic!("cprng_draw failed: {:?}", e),
416416
};

0 commit comments

Comments
 (0)