Skip to content

Commit 8c35e6c

Browse files
committed
Update docs.
1 parent f292643 commit 8c35e6c

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
//!
@@ -864,11 +863,10 @@ pub struct ThreadRng {
864863
}
865864

866865
/// Retrieve the lazily-initialized thread-local random number
867-
/// generator, seeded by the system. Intended to be used in method
866+
/// generator. Intended to be used in method
868867
/// chaining style, e.g. `thread_rng().gen::<i32>()`.
869868
///
870-
/// The RNG provided will reseed itself from the operating system
871-
/// after generating a certain amount of randomness.
869+
/// The RNG provided will use an operating-system source of randomness.
872870
pub fn thread_rng() -> ThreadRng {
873871
// used to make space in TLS for a random number generator
874872
thread_local!(static THREAD_RNG_KEY: Rc<RefCell<ThreadRngInner>> = {

0 commit comments

Comments
 (0)