We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68c1fe5 commit be6150aCopy full SHA for be6150a
src/sidekiq/mod.rs
@@ -4,8 +4,8 @@ use std::fmt;
4
use std::time::{SystemTime, UNIX_EPOCH};
5
6
use crate::Value;
7
-use rand::distributions::Alphanumeric;
8
-use rand::{thread_rng, Rng};
+use rand::distr::Alphanumeric;
+use rand::{rng, Rng};
9
use serde::ser::SerializeStruct;
10
use serde::{Serialize, Serializer};
11
@@ -87,7 +87,7 @@ impl Default for JobOpts {
87
.duration_since(UNIX_EPOCH)
88
.unwrap()
89
.as_secs();
90
- let mut rng = thread_rng();
+ let mut rng = rng();
91
let jid: String = (&mut rng)
92
.sample_iter(Alphanumeric)
93
.take(24)
0 commit comments