diff options
author | Ralf Jung <post@ralfj.de> | 2024-09-25 08:25:36 +0200 |
---|---|---|
committer | Ralf Jung <post@ralfj.de> | 2024-09-25 08:25:36 +0200 |
commit | 1fe049ad57e4a60adce495ba7f1d592fdd0ec894 (patch) | |
tree | 95370c3c5a0d9089e5cd0e0715007eb4df99f706 /library/std | |
parent | 1b5aa96d6016bafe50e071b45d4d2e3c90fd766f (diff) |
add link from random() helper fn to extensive DefaultRandomSource docs
Diffstat (limited to 'library/std')
-rw-r--r-- | library/std/src/random.rs | 3 |
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 |