Skip to content

Commit f67efdd

Browse files
committed
add link from random() helper fn to extensive DefaultRandomSource docs
1 parent 2c408b1 commit f67efdd

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)