Skip to content

Commit

Permalink
Merge pull request #456 from archer884/patch-1
Browse files Browse the repository at this point in the history
Use 'dest' as name for bytes param
  • Loading branch information
dhardy authored May 15, 2018
2 parents 5e2b0c0 + e5f9296 commit 89b268e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rngs/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ impl RngCore for ThreadRng {
unsafe { (*self.rng.get()).next_u64() }
}

fn fill_bytes(&mut self, bytes: &mut [u8]) {
unsafe { (*self.rng.get()).fill_bytes(bytes) }
fn fill_bytes(&mut self, dest: &mut [u8]) {
unsafe { (*self.rng.get()).fill_bytes(dest) }
}

fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error> {
Expand Down

0 comments on commit 89b268e

Please # to comment.