File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ log = "0.3.0"
27
27
members = [" rand-derive" ]
28
28
29
29
[target .'cfg(target_os = "fuchsia")' .dependencies ]
30
- magenta = " ^0.1 .1"
30
+ fuchsia-zircon = " ^0.2 .1"
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ mod imp {
383
383
384
384
#[ cfg( target_os = "fuchsia" ) ]
385
385
mod imp {
386
- extern crate magenta ;
386
+ extern crate fuchsia_zircon ;
387
387
388
388
use std:: io;
389
389
use Rng ;
@@ -407,10 +407,10 @@ mod imp {
407
407
next_u64 ( & mut |v| self . fill_bytes ( v) )
408
408
}
409
409
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 ) {
411
411
let mut filled = 0 ;
412
412
while filled < s. len ( ) {
413
- match magenta :: cprng_draw ( & mut s[ filled..] ) {
413
+ match fuchsia_zircon :: cprng_draw ( & mut s[ filled..] ) {
414
414
Ok ( actual) => filled += actual,
415
415
Err ( e) => panic ! ( "cprng_draw failed: {:?}" , e) ,
416
416
} ;
You can’t perform that action at this time.
0 commit comments