Skip to content

Build(deps): bump rand from 0.8.5 to 0.9.0 #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jsonwebtoken = "9.3"
log = { version = "0.4.27", features = ["std", "serde"] }
once_cell = "1.21"
parking_lot = "0.12.3"
rand = "0.9.0"
reqwest = { version = "0.12.15", default-features = false, features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ skip-tree = [
{ name = "rustix", version = "*" },
{ name = "security-framework", version = "2.11.1" }, # keyring uses old version
{ name = "thiserror", version = "1.0" }, # dialoguer uses old version
{ name = "getrandom", version = "0.2.15" }, # rand uses old version
{ name = "rand", version = "0.8.5" }, # p256 uses old version
]

[sources]
Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ hyper.workspace = true
jsonwebtoken.workspace = true
log.workspace = true
parking_lot.workspace = true
rand = "0.8.5"
rand.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
Expand Down
6 changes: 3 additions & 3 deletions lib/src/mcu/auth/oauth2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use async_trait::async_trait;
use chrono::{DateTime, Utc};
use jsonwebtoken::Header;
use log::debug;
use rand::Rng;
use rand::{Rng, TryRngCore};
use serde::ser::SerializeStruct;
use tokio::sync::Mutex;

Expand Down Expand Up @@ -90,8 +90,8 @@ impl<'callback> OAuth2<'callback> {
}

fn generate_token_id() -> String {
let mut rng = rand::rngs::OsRng;
let bytes: [u8; 18] = rng.gen();
let mut rng = rand::rngs::OsRng.unwrap_err(); // Panic on OS-level RNG failure
let bytes: [u8; 18] = rng.random();
hex::encode(bytes)
}

Expand Down
2 changes: 1 addition & 1 deletion test_helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ log.workspace = true
once_cell.workspace = true
parking_lot.workspace = true
p256 = "0.13.2"
rand = "0.8.5"
rand.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_with.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion test_helpers/src/fs/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::path::PathBuf;

use chrono::{serde::ts_seconds_option, DateTime, Utc};
use googletest::prelude::*;
use p256::elliptic_curve::rand_core::OsRng;
use p256::pkcs8::*;
use p256::{ecdsa, pkcs8::LineEnding};
use rand::rngs::OsRng;
use serde::Serialize;
use toml::{self, Value};

Expand Down