Skip to content

Commit

Permalink
Update rand crate to 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 28, 2025
1 parent d12f8d0 commit 7e4b85e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ no-panic = { version = "0.1", optional = true }

[dev-dependencies]
num_cpus = "1.8"
rand = "0.8"
rand_xorshift = "0.3"
rand = "0.9"
rand_xorshift = "0.4"

[lib]
doc-scrape-examples = false
Expand Down
2 changes: 1 addition & 1 deletion examples/upstream_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ macro_rules! benchmark {
let mut throwaway = 0;
for _ in 0..SAMPLES {
let f = loop {
let f = $ty::from_bits(rng.gen());
let f = $ty::from_bits(rng.random());
if f.is_finite() {
break f;
}
Expand Down

0 comments on commit 7e4b85e

Please sign in to comment.