Skip to content

Commit 991cec1

Browse files
authored
Merge pull request #25 from spk/dependabot/cargo/rand-0.9
Update rand requirement from 0.8 to 0.9
2 parents 86ebc18 + be6150a commit 991cec1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ travis-ci = { repository = "spk/rust-sidekiq" }
1717

1818
[dependencies]
1919
futures = "0.3"
20-
rand = "0.8"
20+
rand = "0.9"
2121
serde = "1.0"
2222
serde_json = "1.0"
2323
redis = { version = "0.29", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] }

src/sidekiq/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use std::fmt;
44
use std::time::{SystemTime, UNIX_EPOCH};
55

66
use crate::Value;
7-
use rand::distributions::Alphanumeric;
8-
use rand::{thread_rng, Rng};
7+
use rand::distr::Alphanumeric;
8+
use rand::{rng, Rng};
99
use serde::ser::SerializeStruct;
1010
use serde::{Serialize, Serializer};
1111

@@ -87,7 +87,7 @@ impl Default for JobOpts {
8787
.duration_since(UNIX_EPOCH)
8888
.unwrap()
8989
.as_secs();
90-
let mut rng = thread_rng();
90+
let mut rng = rng();
9191
let jid: String = (&mut rng)
9292
.sample_iter(Alphanumeric)
9393
.take(24)

0 commit comments

Comments
 (0)