Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bf043b2

Browse files
authored
Unrolled build for rust-lang#130811
Rollup merge of rust-lang#130811 - RalfJung:random, r=joboet add link from random() helper fn to extensive DefaultRandomSource docs
2 parents b511753 + 1fe049a commit bf043b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/random.rs

Lines changed: 2 additions & 1 deletion
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)