Skip to content

Commit be6150a

Browse files
committed
fix: update to rand-0.9
1 parent 68c1fe5 commit be6150a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)