Skip to content

Commit

Permalink
Merge branch 'master' into notgull/sec
Browse files Browse the repository at this point in the history
  • Loading branch information
fogti authored Oct 20, 2024
2 parents 366a6fd + cfc0ab0 commit 8957b15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/global_rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ pub fn shuffle<T>(slice: &mut [T]) {
with_rng(|r| r.shuffle(slice))
}

/// Fill a byte slice with random data.
#[inline]
pub fn fill(slice: &mut [u8]) {
with_rng(|r| r.fill(slice))
}

macro_rules! integer {
($t:tt, $doc:tt) => {
#[doc = $doc]
Expand Down

0 comments on commit 8957b15

Please sign in to comment.