Skip to content

Commit

Permalink
Rollup merge of rust-lang#130811 - RalfJung:random, r=joboet
Browse files Browse the repository at this point in the history
add link from random() helper fn to extensive DefaultRandomSource docs
  • Loading branch information
matthiaskrgr authored Sep 25, 2024
2 parents b9ef35a + f67efdd commit 811ce77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 811ce77

Please # to comment.