tokio-xmpp: Bump rand to 0.9
This commit is contained in:
parent
4f270bff7a
commit
c11075d1d4
4 changed files with 4 additions and 9 deletions
|
|
@ -15,8 +15,6 @@ use core::time::Duration;
|
|||
use std::env::args;
|
||||
use std::process::exit;
|
||||
|
||||
use rand::{thread_rng, Rng};
|
||||
|
||||
use futures::StreamExt;
|
||||
|
||||
#[cfg(feature = "rustls-any-backend")]
|
||||
|
|
@ -76,7 +74,7 @@ async fn main() {
|
|||
);
|
||||
let domain: Jid = jid.domain().to_owned().into();
|
||||
let mut ping_timer = tokio::time::interval(Duration::new(5, 0));
|
||||
let mut ping_ctr: u64 = thread_rng().gen();
|
||||
let mut ping_ctr: u64 = rand::random();
|
||||
let signal = tokio::signal::ctrl_c();
|
||||
tokio::pin!(signal);
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Reference in a new issue