From 949bfddda99e592218a2c0f17f88acc52b933e98 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 6 Jul 2025 11:57:38 +0100 Subject: [PATCH] Update rand-passwd.md Updated the import from rand::distributions::Alphanumeric to rand::distr::Alphanumeric to match the latest version of the rand crate. --- src/algorithms/randomness/rand-passwd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/randomness/rand-passwd.md b/src/algorithms/randomness/rand-passwd.md index 8c74662e..3d8ae548 100644 --- a/src/algorithms/randomness/rand-passwd.md +++ b/src/algorithms/randomness/rand-passwd.md @@ -7,7 +7,7 @@ a-z, 0-9`, with [`Alphanumeric`] sample. ```rust,edition2018 use rand::{rng, Rng}; -use rand::distributions::Alphanumeric; +use rand::distr::Alphanumeric; fn main() { let rand_string: String = rng()