Skip to content

Commit

Permalink
Fix SeedableRng::Seed type for StdRng
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Dec 30, 2023
1 parent 7334a61 commit 4510fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rngs/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ impl RngCore for StdRng {
}

impl SeedableRng for StdRng {
type Seed = <Rng as SeedableRng>::Seed;
// Fix to 256 bits. Changing this is a breaking change!
type Seed = [u8; 32];

#[inline(always)]
fn from_seed(seed: Self::Seed) -> Self {
Expand Down

0 comments on commit 4510fa6

Please sign in to comment.