Skip to content

Commit 30855ea

Browse files
authored
chore(deps): update rand to 0.9.2 (#20)
Signed-off-by: Jan Vollmer <[email protected]>
1 parent a8956c0 commit 30855ea

File tree

3 files changed

+72
-9
lines changed

3 files changed

+72
-9
lines changed

Cargo.lock

Lines changed: 69 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ rustpython-literal = ">=0.4.0"
1919
[dev-dependencies]
2020
rustpython-parser = "0.4.0"
2121
rustpython-ast = { version = "0.4.0", features = ["fold", "unparse"] }
22-
rand = "0.8.5"
22+
rand = "0.9.2"
2323
pretty_assertions = "1.4.1"

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub mod transformer;
77
mod tests {
88
use super::*;
99
use pretty_assertions::assert_eq;
10+
use rand::Rng;
1011
use rustpython_ast::text_size::TextRange;
1112
use rustpython_ast::Fold;
1213
use rustpython_ast::TextSize;
@@ -108,7 +109,7 @@ mod tests {
108109
#[test]
109110
#[ignore = "Fuzzy tests are unstable and should only be used to explore new test cases"]
110111
fn test_fuzzy_files() -> io::Result<()> {
111-
let seed = rand::random::<usize>();
112+
let seed: u64 = rand::rng().random();
112113

113114
for i in 0..10 {
114115
let file_name = format!("./fuzzy_test_files/fuzzy_test{}.py", i);

0 commit comments

Comments
 (0)