Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/rngs/reseeding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ use rand_core::{SeedableRng, TryCryptoRng, TryRng};
/// # Example
///
/// ```
/// use chacha20::ChaCha20Core; // Internal part of ChaChaRng that
/// // implements Generator
/// // Internal part of ChaChaRng that implements Generator
/// type Core = chacha20::ChaChaCore<chacha20::R20, chacha20::variants::Legacy>;
///
/// use rand::prelude::*;
/// use rand::rngs::SysRng;
/// use rand::rngs::ReseedingRng;
///
/// let mut reseeding_rng = ReseedingRng::<ChaCha20Core, _>::new(0, SysRng).unwrap();
/// let mut reseeding_rng = ReseedingRng::<Core, _>::new(0, SysRng).unwrap();
///
/// println!("{}", reseeding_rng.random::<u64>());
/// ```
Expand Down
2 changes: 1 addition & 1 deletion src/rngs/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use core::convert::Infallible;
use rand_core::{SeedableRng, TryCryptoRng, TryRng};

#[cfg(any(test, feature = "sys_rng"))]
pub(crate) use chacha20::ChaCha12Core as Core;
pub(crate) type Core = chacha20::ChaChaCore<chacha20::R12, chacha20::variants::Legacy>;

use chacha20::ChaCha12Rng as Rng;

Expand Down
Loading