Skip to content

Commit

Permalink
Note that SeedableRng does not imply reproducibility of results
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Jan 29, 2025
1 parent 664fb3c commit 9bc595d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rand_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ impl<R: TryCryptoRng> CryptoRng for UnwrapErr<R> {}
/// This trait encapsulates the low-level functionality common to all
/// pseudo-random number generators (PRNGs, or algorithmic generators).
///
/// Note that this trait does not imply
/// [reproducibility](https://rust-random.github.io/book/crate-reprod.html)
/// of results; this is an optional property which RNGs should mention in their
/// documentation.
///
/// [`rand`]: https://docs.rs/rand
pub trait SeedableRng: Sized {
/// Seed type, which is restricted to types mutably-dereferenceable as `u8`
Expand Down

0 comments on commit 9bc595d

Please sign in to comment.