Skip to content

Commit

Permalink
Unrolled build for rust-lang#130811
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#130811 - RalfJung:random, r=joboet

add link from random() helper fn to extensive DefaultRandomSource docs
  • Loading branch information
rust-timer authored Sep 25, 2024
2 parents b511753 + 1fe049a commit bf043b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/std/src/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf043b2

Please sign in to comment.