Skip to content

Commit 9a4a800

Browse files
authored
Merge pull request #877 from newpavlov/patch-3
A minor rand_core docs update
2 parents 2c43268 + 795a781 commit 9a4a800

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rand_core/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ pub mod le;
6969
/// optimal implementation of each is dependent on the type of generator. There
7070
/// is no required relationship between the output of each; e.g. many
7171
/// implementations of [`fill_bytes`] consume a whole number of `u32` or `u64`
72-
/// values and drop any remaining unused bytes.
72+
/// values and drop any remaining unused bytes. The same can happen with the
73+
/// [`next_u32`] and [`next_u64`] methods, implementations may discard some
74+
/// random bits for efficiency.
7375
///
7476
/// The [`try_fill_bytes`] method is a variant of [`fill_bytes`] allowing error
7577
/// handling; it is not deemed sufficiently useful to add equivalents for

0 commit comments

Comments
 (0)