Skip to content

Commit 9420df9

Browse files
authored
remove fuchsia loop
per rust-random#6 (comment)
1 parent 71a3cb8 commit 9420df9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/fuchsia.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ extern {
1515
}
1616

1717
pub fn getrandom(&mut self, dest: &mut [u8]) -> Result<(), Error> {
18-
for chunk in dest.chunks(256) {
19-
unsafe { zx_cprng_draw(chunk.as_mut_ptr(), chunk.len()) };
20-
}
18+
unsafe { zx_cprng_draw(chunk.as_mut_ptr(), chunk.len()) };
2119
Ok(())
2220
}

0 commit comments

Comments
 (0)