Skip to content

Commit

Permalink
Merge pull request #1225 from dbus2/renovate/rand-0.x
Browse files Browse the repository at this point in the history
⬆️ Update rand to 0.9.0
  • Loading branch information
zeenix authored Jan 27, 2025
2 parents c312981 + c0a948c commit 3be4634
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 15 deletions.
73 changes: 62 additions & 11 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 zbus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ futures-util = { version = "0.3.30", default-features = false, features = [
async-broadcast = "0.7.0"
hex = "0.4.3"
ordered-stream = "0.2"
rand = { version = "0.8.5", optional = true }
rand = { version = "0.9.0", optional = true }
event-listener = "5.3.0"
static_assertions = "1.1.0"
async-trait = "0.1.80"
Expand Down
2 changes: 1 addition & 1 deletion zvariant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ camino = { version = "1.1.9", optional = true }
[dev-dependencies]
serde_json = "1.0.116"
serde_repr = "0.1.19"
rand = "0.8.5"
rand = "0.9.0"
criterion = "0.5.1"
chrono = { version = "0.4.38", features = [
"serde",
Expand Down
4 changes: 2 additions & 2 deletions zvariant/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ mod tests {
// GVariant format now
#[cfg(feature = "gvariant")]
{
use rand::{distributions::Alphanumeric, thread_rng, Rng};
use rand::{distr::Alphanumeric, rng, Rng};

let ctxt = Context::new_gvariant(LE, 0);
let gv_encoded = to_bytes(ctxt, &v).unwrap();
Expand Down Expand Up @@ -837,7 +837,7 @@ mod tests {
panic!();
}

let mut rng = thread_rng();
let mut rng = rng();
// Let's test GVariant ser/de of a 254 byte array with variable-width elements as to
// ensure no problems with non-normal BS of GVariant.
let as_ = vec![
Expand Down

0 comments on commit 3be4634

Please sign in to comment.