Skip to content

Commit 811ce77

Browse files
authored
Rollup merge of rust-lang#130811 - RalfJung:random, r=joboet
add link from random() helper fn to extensive DefaultRandomSource docs
2 parents b9ef35a + f67efdd commit 811ce77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

std/src/random.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ impl RandomSource for DefaultRandomSource {
7171
///
7272
/// This is a convenience function for `T::random(&mut DefaultRandomSource)` and
7373
/// will sample according to the same distribution as the underlying [`Random`]
74-
/// trait implementation.
74+
/// trait implementation. See [`DefaultRandomSource`] for more information about
75+
/// how randomness is sourced.
7576
///
7677
/// **Warning:** Be careful when manipulating random values! The
7778
/// [`random`](Random::random) method on integers samples them with a uniform

0 commit comments

Comments
 (0)