Skip to content

Commit c9f8b2b

Browse files
committed
Update docs.
1 parent 1ee0a32 commit c9f8b2b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/lib.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@
3939
//!
4040
//! There is built-in support for a RNG associated with each thread stored
4141
//! in thread-local storage. This RNG can be accessed via `thread_rng`, or
42-
//! used implicitly via `random`. This RNG is normally randomly seeded
43-
//! from an operating-system source of randomness, e.g. `/dev/urandom` on
44-
//! Unix systems, and will automatically reseed itself from this source
45-
//! after generating 32 KiB of random data.
42+
//! used implicitly via `random`. This RNG normally uses
43+
//! an operating-system source of randomness, e.g. `/dev/urandom` on
44+
//! Unix systems.
4645
//!
4746
//! # Cryptographic security
4847
//!
@@ -871,11 +870,10 @@ pub struct ThreadRng {
871870
}
872871

873872
/// Retrieve the lazily-initialized thread-local random number
874-
/// generator, seeded by the system. Intended to be used in method
873+
/// generator. Intended to be used in method
875874
/// chaining style, e.g. `thread_rng().gen::<i32>()`.
876875
///
877-
/// The RNG provided will reseed itself from the operating system
878-
/// after generating a certain amount of randomness.
876+
/// The RNG provided will use an operating-system source of randomness.
879877
pub fn thread_rng() -> ThreadRng {
880878
// used to make space in TLS for a random number generator
881879
thread_local!(static THREAD_RNG_KEY: Rc<RefCell<ThreadRngInner>> = {

0 commit comments

Comments
 (0)