| 1 |
--- rust-sequoia-chameleon-gnupg-0.13.1.orig/Cargo.toml |
| 2 |
+++ rust-sequoia-chameleon-gnupg-0.13.1/Cargo.toml |
| 3 |
@@ -129,10 +129,10 @@ default-features = false |
| 4 |
version = "2" |
| 5 |
|
| 6 |
[dependencies.rand] |
| 7 |
-version = "0.8" |
| 8 |
+version = "0.10" |
| 9 |
|
| 10 |
[dependencies.rand_distr] |
| 11 |
-version = "0.4" |
| 12 |
+version = "0.6" |
| 13 |
default-features = false |
| 14 |
|
| 15 |
[dependencies.rayon] |
| 16 |
--- rust-sequoia-chameleon-gnupg-0.13.1.orig/src/keyserver.rs |
| 17 |
+++ rust-sequoia-chameleon-gnupg-0.13.1/src/keyserver.rs |
| 18 |
@@ -5,7 +5,7 @@ use std::{ |
| 19 |
|
| 20 |
use anyhow::Result; |
| 21 |
use futures::{stream, StreamExt}; |
| 22 |
-use rand::{thread_rng, seq::SliceRandom}; |
| 23 |
+use rand::{rng as thread_rng, seq::SliceRandom}; |
| 24 |
use tokio::sync::mpsc::{channel, Receiver}; |
| 25 |
|
| 26 |
use sequoia_openpgp::{ |
| 27 |
--- rust-sequoia-chameleon-gnupg-0.13.1.orig/src/parcimonie.rs |
| 28 |
+++ rust-sequoia-chameleon-gnupg-0.13.1/src/parcimonie.rs |
| 29 |
@@ -295,7 +295,7 @@ async fn worker(config: &mut crate::Conf |
| 30 |
config.auto_key_locate.contains(&AutoKeyLocate::KeyServer); |
| 31 |
let policy = config.policy.clone(); |
| 32 |
|
| 33 |
- let mut rng = rand::thread_rng(); |
| 34 |
+ let mut rng = rand::rng(); |
| 35 |
|
| 36 |
let mut certs: Vec<_> = config.keydb().certs() |
| 37 |
.filter_map(|c| c.to_cert().ok().cloned()) |
| 38 |
@@ -367,7 +367,7 @@ async fn worker(config: &mut crate::Conf |
| 39 |
// If everything is revoked, don't spin forever. |
| 40 |
let mut cert = None; |
| 41 |
for _ in 0..20 { |
| 42 |
- let i = rng.gen_range(0..n); |
| 43 |
+ let i = rng.random_range(0..n); |
| 44 |
let c = certs.get(i).unwrap(); |
| 45 |
|
| 46 |
match c.with_policy(config.policy(), None) |