Prepare for releasing 8.1.0
This commit is contained in:
parent
3fa55bdc14
commit
28332fd4b9
21 changed files with 1387 additions and 978 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue