File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ once_cell = "^1.8"
3131[dev-dependencies ]
3232quickcheck = " ^1.0"
3333serde_json = " ^1.0"
34- rand = " ^0.8 "
34+ rand = " ^0.9 "
3535pretty_assertions = " ^1.0"
3636
3737[[test ]]
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use std::env::VarError;
55use std:: process:: Command ;
66
77use pretty_assertions:: assert_eq;
8- use rand:: distributions :: Alphanumeric ;
8+ use rand:: distr :: Alphanumeric ;
99use rand:: Rng ;
1010
1111use libsystemd:: logging:: * ;
@@ -14,7 +14,7 @@ fn random_target(prefix: &str) -> String {
1414 format ! (
1515 "{}_{}" ,
1616 prefix,
17- rand:: thread_rng ( )
17+ rand:: rng ( )
1818 . sample_iter( & Alphanumeric )
1919 . take( 10 )
2020 . map( char :: from)
Original file line number Diff line number Diff line change 11use std:: process:: Command ;
22
33use libsystemd:: logging:: Priority ;
4- use rand:: distributions :: Alphanumeric ;
4+ use rand:: distr :: Alphanumeric ;
55use rand:: Rng ;
66use std:: collections:: HashMap ;
77use std:: time:: Duration ;
@@ -10,7 +10,7 @@ fn random_name(prefix: &str) -> String {
1010 format ! (
1111 "{}_{}" ,
1212 prefix,
13- rand:: thread_rng ( )
13+ rand:: rng ( )
1414 . sample_iter( & Alphanumeric )
1515 . take( 10 )
1616 . map( char :: from)
You can’t perform that action at this time.
0 commit comments