Skip to content

Help people looking for random bytes find DefaultRandomSource.fill_bytes - #157221

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
joshtriplett:random-source-doc-alias
Jun 1, 2026
Merged

Help people looking for random bytes find DefaultRandomSource.fill_bytes#157221
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
joshtriplett:random-source-doc-alias

Conversation

@joshtriplett

Copy link
Copy Markdown
Member

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.

…domness
`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.
@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 31, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

r? @jhpratt

rustbot has assigned @jhpratt.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 8 candidates
  • Random selection from Mark-Simulacrum, jhpratt

@jhpratt

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-borsBot commented May 31, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f65c565 has been approved by jhpratt

It is now in the queue for this repository.

@rust-borsrust-borsBot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 31, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 1, 2026
…as, 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.
@jhprattjhpratt mentioned this pull request Jun 1, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 1, 2026
…as, 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.
This was referenced Jun 1, 2026
rust-borsBot pushed a commit that referenced this pull request Jun 1, 2026
Rollup of 6 pull requests
Successful merges:
- #156832 (library: use strict provenance lints consistently)
- #157223 (rustdoc: Fix ICE on delegated async functions)
- #156528 (Explicitly request copying `rustc-dev` artifacts for rustfmt/clippy and add rustc libs path for rustc-private tools under `download-rustc`)
- #157059 (update TargetFeature::Forbidden docs)
- #157159 (Fix CI free-disk-space-linux script)
- #157221 (Help people looking for random bytes find `DefaultRandomSource.fill_bytes`)
@rust-bors
rust-borsBot merged commit e5b9884 into rust-lang:mainJun 1, 2026
12 checks passed
rust-timer added a commit that referenced this pull request Jun 1, 2026
Rollup merge of #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.
@rustbotrustbot added this to the 1.98.0 milestone Jun 1, 2026
@joboetjoboet added the A-random Area: random data generation support label Jul 17, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-randomArea: random data generation supportS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@joshtriplett@rustbot@jhpratt@joboet