Skip to content

Commit

Permalink
⬆️ Update rand to 0.9.0 (#199)
Browse files Browse the repository at this point in the history
* ⬆️  Update to latest zbus main

* ⬆️  Update rand to 0.9.0

---------

Co-authored-by: Zeeshan Ali Khan <[email protected]>
  • Loading branch information
renovate[bot] and zeenix authored Jan 27, 2025
1 parent 283c70b commit 683323b
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 32 deletions.
124 changes: 102 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ default = ["tracing-subscriber"]

[dev-dependencies]
ntest = "0.9.2"
rand = "0.8.5"
rand = "0.9.0"

[profile.release]
lto = "fat"
Expand Down
6 changes: 3 additions & 3 deletions tests/fdo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use futures_util::stream::StreamExt;
use ntest::timeout;
#[cfg(unix)]
use rand::{
distributions::{Alphanumeric, DistString},
thread_rng,
distr::{Alphanumeric, SampleString},
rng,
};
use tokio::{select, sync::oneshot::Sender};
use tracing::instrument;
Expand All @@ -28,7 +28,7 @@ async fn name_ownership_changes() {
// Unix socket
#[cfg(unix)]
{
let s = Alphanumeric.sample_string(&mut thread_rng(), 10);
let s = Alphanumeric.sample_string(&mut rng(), 10);
let path = temp_dir().join(s);
let address = format!("unix:path={}", path.display());
name_ownership_changes_(&address).await;
Expand Down
6 changes: 3 additions & 3 deletions tests/greet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use futures_util::{pin_mut, stream::StreamExt};
use ntest::timeout;
#[cfg(unix)]
use rand::{
distributions::{Alphanumeric, DistString},
thread_rng,
distr::{Alphanumeric, SampleString},
rng,
};
use tokio::{select, sync::mpsc::channel, time::timeout};
use tracing::instrument;
Expand All @@ -33,7 +33,7 @@ async fn greet() {
// Unix socket
#[cfg(unix)]
{
let s = Alphanumeric.sample_string(&mut thread_rng(), 10);
let s = Alphanumeric.sample_string(&mut rng(), 10);
let path = temp_dir().join(s);
let address = format!("unix:path={}", path.display());
greet_(&address).await;
Expand Down
6 changes: 3 additions & 3 deletions tests/multiple_conns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use futures_util::future::join_all;
use ntest::timeout;
#[cfg(unix)]
use rand::{
distributions::{Alphanumeric, DistString},
thread_rng,
distr::{Alphanumeric, SampleString},
rng,
};
use tokio::{select, sync::oneshot::channel};
use tracing::instrument;
Expand All @@ -21,7 +21,7 @@ async fn multi_conenct() {

#[cfg(unix)]
{
let s = Alphanumeric.sample_string(&mut thread_rng(), 10);
let s = Alphanumeric.sample_string(&mut rng(), 10);
let path = temp_dir().join(s);
let address = format!("unix:path={}", path.display());
multi_conenct_(&address).await;
Expand Down

0 comments on commit 683323b

Please sign in to comment.