Skip to content

Commit

Permalink
Simplify example for large seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
vks committed Apr 10, 2018
1 parent b75cfb5 commit ed77f12
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions rand_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,13 @@ pub trait SeedableRng: Sized {
/// ```
/// use rand_core::SeedableRng;
///
/// pub struct MyRngSeed(pub [u8; 64]);
/// const N: usize = 64;
/// pub struct MyRngSeed(pub [u8; N]);
/// pub struct MyRng(MyRngSeed);
///
/// impl Default for MyRngSeed {
/// fn default() -> MyRngSeed {
/// MyRngSeed([
/// 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/// 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/// 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/// 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/// ])
/// MyRngSeed([0; N])
/// }
/// }
///
Expand Down

0 comments on commit ed77f12

Please sign in to comment.