Commit e5b9884
authored
Rollup merge of rust-lang#157221 - joshtriplett:random-source-doc-alias, r=jhpratt
Help people looking for random bytes find `DefaultRandomSource.fill_bytes`
Mention, in the `DefaultRandomSource` docs, how to fill a buffer with random bytes.
Add doc aliases for `DefaultRandomSource`, for people looking for various sources of 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 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments