Skip to content

Commit 79e15f4

Browse files
authored
Merge pull request #153 from lucab/dependabot/cargo/rand-tw-0.9
build(deps): update rand requirement from ^0.8 to ^0.9
2 parents 565ec09 + 160d9df commit 79e15f4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ once_cell = "^1.8"
3131
[dev-dependencies]
3232
quickcheck = "^1.0"
3333
serde_json = "^1.0"
34-
rand = "^0.8"
34+
rand = "^0.9"
3535
pretty_assertions = "^1.0"
3636

3737
[[test]]

tests/connected_to_journal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::env::VarError;
55
use std::process::Command;
66

77
use pretty_assertions::assert_eq;
8-
use rand::distributions::Alphanumeric;
8+
use rand::distr::Alphanumeric;
99
use rand::Rng;
1010

1111
use 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)

tests/journal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::process::Command;
22

33
use libsystemd::logging::Priority;
4-
use rand::distributions::Alphanumeric;
4+
use rand::distr::Alphanumeric;
55
use rand::Rng;
66
use std::collections::HashMap;
77
use 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)

0 commit comments

Comments
 (0)