add link from random() helper fn to extensive DefaultRandomSource docs

This commit is contained in:
Ralf Jung 2024-09-25 08:25:36 +02:00
parent 1b5aa96d60
commit 1fe049ad57

View File

@ -71,7 +71,8 @@ fn fill_bytes(&mut self, bytes: &mut [u8]) {
///
/// 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