Skip to content

Commit

Permalink
Use 'dest' as name for bytes param
Browse files Browse the repository at this point in the history
Other implementations of RngCore appear to consistently use "dest" as the name for this parameter.
  • Loading branch information
archer884 committed May 15, 2018
1 parent 7d09b36 commit e5f9296
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 e5f9296

Please # to comment.