build: update rand to 0.9

We already have both rand 0.8 and rand 0.9
in our dependency tree.

We still need rand 0.8 because
public APIs of rPGP 0.17.0 and Iroh 0.35.0
use rand 0.8 types in public APIs,
so it is imported as rand_old.
This commit is contained in:
link2xt
2025-10-26 00:54:26 +00:00
committed by l
parent 0e30dd895f
commit f428033d95
15 changed files with 22 additions and 31 deletions

View File

@@ -4339,8 +4339,8 @@ async fn test_download_later() -> Result<()> {
let bob_chat = bob.create_chat(&alice).await;
// Generate a random string so OpenPGP does not compress it.
let text: String = rand::thread_rng()
.sample_iter(&rand::distributions::Alphanumeric)
let text: String = rand::rng()
.sample_iter(&rand::distr::Alphanumeric)
.take(MIN_DOWNLOAD_LIMIT as usize)
.map(char::from)
.collect();