Skip to content

Commit

Permalink
add link from random() helper fn to extensive DefaultRandomSource docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 25, 2024
1 parent 1b5aa96 commit 1fe049a
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 1fe049a

Please sign in to comment.