Skip to content

Commit

Permalink
Merge pull request #80 from pitdicker/seed_sizes
Browse files Browse the repository at this point in the history
Restrict the seed type to a few more array sizes
  • Loading branch information
dhardy authored Dec 31, 2017
2 parents e9359ac + 4ea098b commit 45ace88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rand_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,11 @@ impl<R: Rng+?Sized> Rng for Box<R> {

mod private {
pub trait Sealed {}
impl Sealed for [u8; 4] {}
impl Sealed for [u8; 8] {}
impl Sealed for [u8; 12] {}
impl Sealed for [u8; 16] {}
impl Sealed for [u8; 24] {}
impl Sealed for [u8; 32] {}
}

Expand Down

0 comments on commit 45ace88

Please sign in to comment.