Skip to content

Commit f65c565

Browse files
committed
Add doc aliases for DefaultRandomSource, for people looking for randomness
`getrandom` is both a crate for this and the name of the underlying syscall on various OSes. `getentropy` and `arc4random` are common library calls on various OSes.
1 parent 9c25035 commit f65c565

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

library/std/src/random.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ use crate::sys::random as sys;
5656
///
5757
/// [`getrandom`]: https://www.man7.org/linux/man-pages/man2/getrandom.2.html
5858
/// [`/dev/urandom`]: https://www.man7.org/linux/man-pages/man4/random.4.html
59+
#[doc(alias = "getrandom", alias = "getentropy", alias = "arc4random")]
5960
#[derive(Default, Debug, Clone, Copy)]
6061
#[unstable(feature = "random", issue = "130703")]
6162
pub struct DefaultRandomSource;

0 commit comments

Comments
 (0)