Remove rand_core and import re-export.

This commit is contained in:
Orne Brocaar 2025-03-20 10:53:14 +00:00
parent 8f34ea2ca5
commit 105ea2806a
3 changed files with 1 additions and 4 deletions

1
Cargo.lock generated
View File

@ -949,7 +949,6 @@ dependencies = [
"prost",
"prost-types",
"rand 0.9.0",
"rand_core 0.6.4",
"rcgen",
"rdkafka",
"redis",

View File

@ -105,7 +105,6 @@
# Authentication
pbkdf2 = { version = "0.12", features = ["simple"] }
rand_core = { version = "0.6.4", features = ["std"] }
jsonwebtoken = "9.3"
rustls = { version = "0.23", default-features = false, features = [
"logging",

View File

@ -4,10 +4,9 @@ use diesel::{dsl, prelude::*};
use diesel_async::RunQueryDsl;
use email_address::EmailAddress;
use pbkdf2::{
password_hash::{PasswordHash, PasswordHasher, PasswordVerifier, SaltString},
password_hash::{rand_core::OsRng, PasswordHash, PasswordHasher, PasswordVerifier, SaltString},
Algorithm, Pbkdf2,
};
use rand_core::OsRng;
use tracing::info;
use uuid::Uuid;