From 07c02d4751abd3b3e5331547d8681fd1ece36be0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Aug 2024 13:36:46 +0000 Subject: [PATCH] build(deps): bump rand from 0.9.0-alpha.1 to 0.9.0-alpha.2 Bumps [rand](https://github.com/rust-random/rand) from 0.9.0-alpha.1 to 0.9.0-alpha.2. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/0.9.0-alpha.2/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/commits/0.9.0-alpha.2) --- updated-dependencies: - dependency-name: rand dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 28 ++++++++++++++-------------- Cargo.toml | 2 +- src/password.rs | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d425df0..a59d875 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1941,7 +1941,7 @@ dependencies = [ "log", "postgres", "predicates", - "rand 0.9.0-alpha.1", + "rand 0.9.0-alpha.2", "reqwest 0.12.5", "rustls 0.23.12", "serde", @@ -1976,12 +1976,12 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.0-alpha.1" +version = "0.9.0-alpha.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d31e63ea85be51c423e52ba8f2e68a3efd53eed30203ee029dd09947333693e" +checksum = "c3e256ff62cee3e03def855c4d4260106d2bb1696fdc01af03e9935b993720a5" dependencies = [ - "rand_chacha 0.9.0-alpha.1", - "rand_core 0.9.0-alpha.1", + "rand_chacha 0.9.0-alpha.2", + "rand_core 0.9.0-alpha.2", "zerocopy", ] @@ -1997,12 +1997,12 @@ dependencies = [ [[package]] name = "rand_chacha" -version = "0.9.0-alpha.1" +version = "0.9.0-alpha.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78674ef918c19451dbd250f8201f8619b494f64c9aa6f3adb28fd8a0f1f6da46" +checksum = "d299e9db34f6623b2a9e86c015d6e173d5f46d64d4b9b8cc46ae8a982a50b04c" dependencies = [ "ppv-lite86", - "rand_core 0.9.0-alpha.1", + "rand_core 0.9.0-alpha.2", ] [[package]] @@ -2016,9 +2016,9 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.9.0-alpha.1" +version = "0.9.0-alpha.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc89dffba8377c5ec847d12bb41492bda235dba31a25e8b695cd0fe6589eb8c9" +checksum = "f4e93f5a5e3c528cda9acb0928c31b2ba868c551cc46e67b778075e34aab9906" dependencies = [ "getrandom", "zerocopy", @@ -3443,18 +3443,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.0-alpha.6" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db678a6ee512bd06adf35c35be471cae2f9c82a5aed2b5d15e03628c98bddd57" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.0-alpha.6" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "201585ea96d37ee69f2ac769925ca57160cef31acb137c16f38b02b76f4c1e62" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index f8361f9..7a066a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ env_logger = "0.11.5" lazy_static = "1.5.0" log = "0.4.22" postgres = "0.19.8" -rand = "0.9.0-alpha.1" +rand = "0.9.0-alpha.2" serde = { version = "1.0.207", features = ["derive"] } reqwest = { version = "0.12.5", features = ["json"] } serde_json = "1.0.124" diff --git a/src/password.rs b/src/password.rs index 0d99cff..9621412 100644 --- a/src/password.rs +++ b/src/password.rs @@ -1,5 +1,5 @@ use log::trace; -use rand::distributions::Alphanumeric; +use rand::distr::Alphanumeric; use rand::{thread_rng, Rng}; pub(crate) fn generate_random_password(length: usize) -> String {