Skip to content

Commit 5ecc607

Browse files
authored
chore(test): Update to rand 0.9 (#2236)
1 parent 457ae30 commit 5ecc607

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/default_stubs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "default_stubs"
88
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
99
tokio-stream = {version = "0.1", features = ["net"]}
1010
prost = "0.13"
11-
rand = "0.8"
11+
rand = "0.9"
1212
tonic = {path = "../../tonic"}
1313

1414
[build-dependencies]

tests/default_stubs/src/test_defaults.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ async fn run_services_in_background_uds() -> (String, String) {
139139
let svc = test_server::TestServer::new(Svc {});
140140
let svc_default_stubs = test_default_server::TestDefaultServer::new(Svc {});
141141

142-
let mut rng = rand::thread_rng();
142+
let mut rng = rand::rng();
143143
let suffix: String = (0..8)
144-
.map(|_| rng.sample(rand::distributions::Alphanumeric) as char)
144+
.map(|_| rng.sample(rand::distr::Alphanumeric) as char)
145145
.collect();
146146
let tmpdir = fs::canonicalize(env::temp_dir())
147147
.unwrap()

0 commit comments

Comments
 (0)