We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df37aff commit 57c54bbCopy full SHA for 57c54bb
src/rngs/thread.rs
@@ -87,10 +87,11 @@ thread_local!(
87
}
88
);
89
90
-/// Retrieve the lazily-initialized thread-local random number
91
-/// generator, seeded by the system. Intended to be used in method
92
-/// chaining style, e.g. `thread_rng().gen::<i32>()`, or cached locally, e.g.
93
-/// `let mut rng = thread_rng();`.
+/// Retrieve the lazily-initialized thread-local random number generator,
+/// seeded by the system. Intended to be used in method chaining style,
+/// e.g. `thread_rng().gen::<i32>()`, or cached locally, e.g.
+/// `let mut rng = thread_rng();`. Invoked by the `Default` trait, making
94
+/// `ThreadRng::default()` equivelent.
95
///
96
/// For more information see [`ThreadRng`].
97
0 commit comments