Skip to content

Commit 5da4103

Browse files
committed
chore(deps): udpate dependencies
``` cargo update Updating crates.io index Locking 24 packages to latest compatible versions Updating async-compression v0.4.18 -> v0.4.19 Updating cc v1.2.14 -> v1.2.15 Updating chrono v0.4.39 -> v0.4.40 Updating clap v4.5.30 -> v4.5.31 Updating clap_builder v4.5.30 -> v4.5.31 Updating either v1.13.0 -> v1.14.0 Updating flate2 v1.0.35 -> v1.1.0 Updating inout v0.1.3 -> v0.1.4 Updating libc v0.2.169 -> v0.2.170 Updating litemap v0.7.4 -> v0.7.5 Updating log v0.4.25 -> v0.4.26 Updating miniz_oxide v0.8.4 -> v0.8.5 Updating pem v3.0.4 -> v3.0.5 Updating portable-atomic v1.10.0 -> v1.11.0 Updating rand_core v0.9.1 -> v0.9.2 Updating redox_syscall v0.5.8 -> v0.5.9 Updating ring v0.17.9 -> v0.17.11 Updating uuid v1.13.2 -> v1.15.1 Adding windows-link v0.1.0 Updating zerofrom v0.1.5 -> v0.1.6 Updating zerofrom-derive v0.1.5 -> v0.1.6 Updating zstd v0.13.2 -> v0.13.3 Updating zstd-safe v7.2.1 -> v7.2.3 Updating zstd-sys v2.0.13+zstd.1.5.6 -> v2.0.14+zstd.1.5.7 ```
1 parent 605eb3f commit 5da4103

File tree

3 files changed

+65
-60
lines changed

3 files changed

+65
-60
lines changed

Cargo.lock

+60-55
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/axum-http-tracker-server/tests/common/fixtures.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ pub fn invalid_info_hashes() -> Vec<String> {
1515

1616
/// Returns a random info hash.
1717
pub fn random_info_hash() -> InfoHash {
18-
let mut rng = rand::thread_rng();
19-
let random_bytes: [u8; 20] = rng.gen();
18+
let mut rng = rand::rng();
19+
let random_bytes: [u8; 20] = rng.random();
2020

2121
InfoHash::from_bytes(&random_bytes)
2222
}

packages/udp-tracker-server/tests/common/fixtures.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ use rand::prelude::*;
44

55
/// Returns a random info hash.
66
pub fn random_info_hash() -> InfoHash {
7-
let mut rng = rand::thread_rng();
8-
let random_bytes: [u8; 20] = rng.gen();
7+
let mut rng = rand::rng();
8+
let random_bytes: [u8; 20] = rng.random();
99

1010
InfoHash::from_bytes(&random_bytes)
1111
}
1212

1313
/// Returns a random transaction id.
1414
pub fn random_transaction_id() -> TransactionId {
15-
let random_value = rand::thread_rng().gen();
15+
let random_value = rand::rng().random();
1616
TransactionId::new(random_value)
1717
}

0 commit comments

Comments
 (0)