Skip to content

Use rand crate more idiomatically - #150781

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
yotamofek:pr/cleanup-rand-usages
Jan 11, 2026
Merged

Use rand crate more idiomatically#150781
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
yotamofek:pr/cleanup-rand-usages

Conversation

@yotamofek

Copy link
Copy Markdown
Contributor

Small cleanup, found while working on something else.
We were using rand un-idiomatically in a couple of places, and it was bugging me...

@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 Jan 7, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

r? @jieyouxu

rustbot has assigned @jieyouxu.
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

@jieyouxu

Copy link
Copy Markdown
Member

@rustbot reroll

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+

@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 Jan 10, 2026
@rust-bors

rust-borsBot commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f82dd82 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

Zalathar added a commit to Zalathar/rust that referenced this pull request Jan 11, 2026
…ulacrum
Use `rand` crate more idiomatically
Small cleanup, found while working on something else.
We were using `rand` un-idiomatically in a couple of places, and it was bugging me...
Zalathar added a commit to Zalathar/rust that referenced this pull request Jan 11, 2026
…ulacrum
Use `rand` crate more idiomatically
Small cleanup, found while working on something else.
We were using `rand` un-idiomatically in a couple of places, and it was bugging me...
@ZalatharZalathar mentioned this pull request Jan 11, 2026
rust-borsBot added a commit that referenced this pull request Jan 11, 2026
Rollup of 14 pull requests
Successful merges:
- #148941 (stabilize `Peekable::next_if_map` (`#![feature(peekable_next_if_map)]`))
- #150368 (adding Ordering enum to minicore.rs, importing minicore in "tests/assembly-llvm/rust-abi-arg-attr.rs" test file)
- #150668 (Unix implementation for stdio set/take/replace)
- #150743 (Reword the collect() docs)
- #150776 (Fix the connect_error test on FreeBSD 15+)
- #150781 (Use `rand` crate more idiomatically)
- #150786 (mGCA: Support array expression as direct const arguments)
- #150812 (Bump `diesel` to the most recent commit in `cargotest`)
- #150862 (std: sys: fs: uefi: Implement File::flush)
- #150873 (Reenable GCC CI download)
- #150908 (llvm: Update `reliable_f16` configuration for LLVM22)
- #150918 (std: sys: fs: uefi: Implement File::seek)
- #150922 (Subscribe myself to attr parsing)
- #150930 (Remove special case for `AllowedTargets::CrateLevel`)
r? @ghost
rust-borsBot added a commit that referenced this pull request Jan 11, 2026
Rollup of 14 pull requests
Successful merges:
- #148941 (stabilize `Peekable::next_if_map` (`#![feature(peekable_next_if_map)]`))
- #150368 (adding Ordering enum to minicore.rs, importing minicore in "tests/assembly-llvm/rust-abi-arg-attr.rs" test file)
- #150668 (Unix implementation for stdio set/take/replace)
- #150743 (Reword the collect() docs)
- #150776 (Fix the connect_error test on FreeBSD 15+)
- #150781 (Use `rand` crate more idiomatically)
- #150812 (Bump `diesel` to the most recent commit in `cargotest`)
- #150862 (std: sys: fs: uefi: Implement File::flush)
- #150873 (Reenable GCC CI download)
- #150908 (llvm: Update `reliable_f16` configuration for LLVM22)
- #150918 (std: sys: fs: uefi: Implement File::seek)
- #150922 (Subscribe myself to attr parsing)
- #150930 (Remove special case for `AllowedTargets::CrateLevel`)
- #150942 (Port `#[rustc_has_incoherent_inherent_impls]` to attribute parser)
Failed merges:
- #150943 (Port `#[must_not_suspend]` to attribute parser)
r? @ghost
@rust-bors
rust-borsBot merged commit 57da460 into rust-lang:mainJan 11, 2026
11 checks passed
@rustbotrustbot added this to the 1.94.0 milestone Jan 11, 2026
rust-timer added a commit that referenced this pull request Jan 11, 2026
Rollup merge of #150781 - pr/cleanup-rand-usages, r=Mark-Simulacrum
Use `rand` crate more idiomatically
Small cleanup, found while working on something else.
We were using `rand` un-idiomatically in a couple of places, and it was bugging me...
github-actionsBot pushed a commit to rust-lang/miri that referenced this pull request Jan 12, 2026
Rollup of 14 pull requests
Successful merges:
- rust-lang/rust#148941 (stabilize `Peekable::next_if_map` (`#![feature(peekable_next_if_map)]`))
- rust-lang/rust#150368 (adding Ordering enum to minicore.rs, importing minicore in "tests/assembly-llvm/rust-abi-arg-attr.rs" test file)
- rust-lang/rust#150668 (Unix implementation for stdio set/take/replace)
- rust-lang/rust#150743 (Reword the collect() docs)
- rust-lang/rust#150776 (Fix the connect_error test on FreeBSD 15+)
- rust-lang/rust#150781 (Use `rand` crate more idiomatically)
- rust-lang/rust#150812 (Bump `diesel` to the most recent commit in `cargotest`)
- rust-lang/rust#150862 (std: sys: fs: uefi: Implement File::flush)
- rust-lang/rust#150873 (Reenable GCC CI download)
- rust-lang/rust#150908 (llvm: Update `reliable_f16` configuration for LLVM22)
- rust-lang/rust#150918 (std: sys: fs: uefi: Implement File::seek)
- rust-lang/rust#150922 (Subscribe myself to attr parsing)
- rust-lang/rust#150930 (Remove special case for `AllowedTargets::CrateLevel`)
- rust-lang/rust#150942 (Port `#[rustc_has_incoherent_inherent_impls]` to attribute parser)
Failed merges:
- rust-lang/rust#150943 (Port `#[must_not_suspend]` to attribute parser)
r? @ghost
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-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

@yotamofek@rustbot@jieyouxu@Mark-Simulacrum