Skip to content

Commit

Permalink
Bump rand to v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini committed Jan 27, 2025
1 parent 954e4c7 commit 4156e34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ indexmap = "2.0.2"
lazy_static = "1.4.0"
pin-project-lite = "0.2.7"
quickcheck = "1"
rand = "0.8"
rand = "0.9"
slab = "0.4"
sync_wrapper = "1"
tokio = "1.6.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2018"
tower = { version = "0.4", path = "../tower", features = ["full"] }
tower-service = "0.3"
tokio = { version = "1.0", features = ["full"] }
rand = "0.8"
rand = "0.9"
pin-project = "1.0"
futures = "0.3.22"
tracing = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion tower/examples/tower-balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fn gen_disco() -> impl Discover<

let maxms = u64::from(latency.subsec_millis())
.saturating_add(latency.as_secs().saturating_mul(1_000));
let latency = Duration::from_millis(rand::thread_rng().gen_range(0..maxms));
let latency = Duration::from_millis(rand::rng().random_range(0..maxms));

async move {
time::sleep_until(start + latency).await;
Expand Down

0 comments on commit 4156e34

Please sign in to comment.