Prepare for releasing 8.1.0

This commit is contained in:
Igor Katson 2025-06-05 11:38:50 +01:00
parent 3fa55bdc14
commit 28332fd4b9
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
21 changed files with 1387 additions and 978 deletions

View file

@ -20,14 +20,14 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
hex = "0.4"
anyhow = "1"
url = { version = "2", default-features = false }
rand = "0.8"
rand = "0.9"
parking_lot = "0.12"
serde = { version = "1", features = ["derive"] }
buffers = { path = "../buffers", package = "librqbit-buffers", version = "4.2" }
bencode = { path = "../bencode", default-features = false, package = "librqbit-bencode", version = "3.0.1" }
clone_to_owned = { path = "../clone_to_owned", package = "librqbit-clone-to-owned", version = "3" }
itertools = "0.14"
directories = "5"
directories = "6"
tokio-util = "0.7.10"
data-encoding = "2.6.0"
bytes = "1.7.1"

View file

@ -102,7 +102,7 @@ pub fn generate_peer_id(fingerprint: &[u8]) -> Id20 {
let mut peer_id = [0u8; 20];
peer_id[..8].copy_from_slice(fingerprint);
rand::thread_rng().fill_bytes(&mut peer_id[8..]);
rand::rng().fill_bytes(&mut peer_id[8..]);
Id20::new(peer_id)
}