File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3939//! fn from_seed(seed: Self::Seed) -> Self {
4040//! let core = MyRngCore {
4141//! // ...
42- //! # state: rand_core::le ::read_words(&seed),
42+ //! # state: rand_core::utils ::read_words(&seed),
4343//! };
4444//! MyRng(BlockRng::new(core))
4545//! }
8181//! [`SeedableRng`]: crate::SeedableRng
8282//! [`rand::rngs::ReseedingRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ReseedingRng.html
8383
84- use crate :: le :: Word ;
84+ use crate :: utils :: Word ;
8585use core:: fmt;
8686
8787/// A random (block) generator
Original file line number Diff line number Diff line change 1616use core:: { fmt, ops:: DerefMut } ;
1717
1818pub mod block;
19- pub mod le ;
19+ pub mod utils ;
2020mod word;
2121
2222/// Implementation-level interface for RNGs
@@ -51,7 +51,7 @@ mod word;
5151///
5252/// Typically an RNG will implement only one of the methods available
5353/// in this trait directly, then use the helper functions from the
54- /// [`le` module](crate::le) to implement the other methods.
54+ /// [`utils`] module to implement the other methods.
5555///
5656/// Note that implementors of [`RngCore`] also automatically implement
5757/// the [`TryRngCore`] trait with the `Error` associated type being
@@ -507,7 +507,7 @@ mod test {
507507 type Seed = [ u8 ; 8 ] ;
508508
509509 fn from_seed ( seed : Self :: Seed ) -> Self {
510- let x: [ u64 ; 1 ] = le :: read_words ( & seed) ;
510+ let x: [ u64 ; 1 ] = utils :: read_words ( & seed) ;
511511 SeedableNum ( x[ 0 ] )
512512 }
513513 }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments