about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-25 20:10:59 +0200
committerGitHub <noreply@github.com>2024-09-25 20:10:59 +0200
commit3ee3e063c1139fb19d1019a0366404e41a14a359 (patch)
tree595ef46ebcc84a083cf7c04f26a29ed24110de50
parent81ac893d3bc872e9eb406512d5d23c7c5f05bc57 (diff)
parent1fe049ad57e4a60adce495ba7f1d592fdd0ec894 (diff)
downloadrust-3ee3e063c1139fb19d1019a0366404e41a14a359.tar.gz
rust-3ee3e063c1139fb19d1019a0366404e41a14a359.zip
Rollup merge of #130811 - RalfJung:random, r=joboet
add link from random() helper fn to extensive DefaultRandomSource docs
-rw-r--r--library/std/src/random.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/random.rs b/library/std/src/random.rs
index ecbf02eee84..604fa4df110 100644
--- a/library/std/src/random.rs
+++ b/library/std/src/random.rs
@@ -71,7 +71,8 @@ impl RandomSource for DefaultRandomSource {
 ///
 /// This is a convenience function for `T::random(&mut DefaultRandomSource)` and
 /// will sample according to the same distribution as the underlying [`Random`]
-/// trait implementation.
+/// trait implementation. See [`DefaultRandomSource`] for more information about
+/// how randomness is sourced.
 ///
 /// **Warning:** Be careful when manipulating random values! The
 /// [`random`](Random::random) method on integers samples them with a uniform