Skip to content

Commit 1b3a35e

Browse files
svc-secopsrenovate[bot]lrlna
authored
chore(deps): update rust crate rand to 0.9.0 (#951)
Co-authored-by: renovate[bot] <[email protected]> Co-authored-by: Iryna Shestak <[email protected]>
1 parent 8e5a401 commit 1b3a35e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crates/apollo-smith/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ thiserror = "2.0.0"
3131

3232
[dev-dependencies]
3333
expect-test = "1.4"
34-
rand = "0.8.5"
34+
rand = "0.9.0"

crates/apollo-smith/examples/generate.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ use apollo_smith::Document;
33
use apollo_smith::DocumentBuilder;
44
use arbitrary::Result;
55
use arbitrary::Unstructured;
6-
use rand::distributions::Alphanumeric;
6+
use rand::distr::Alphanumeric;
77
use rand::rngs::StdRng;
8-
use rand::thread_rng;
98
use rand::Rng;
109
use rand::SeedableRng;
1110
use std::fs;
@@ -27,7 +26,7 @@ pub fn generate_valid_operation(schema_path: &str, seed_arg: Option<String>) ->
2726

2827
let seed: u64 = match seed_arg {
2928
Some(s) => s.parse().unwrap(),
30-
None => thread_rng().gen(),
29+
None => rand::rng().random(),
3130
};
3231

3332
println!("generating from seed: {seed}");

0 commit comments

Comments
 (0)