From 339d6fab82efb0e8dba1f3b01594e23ed88fa3f5 Mon Sep 17 00:00:00 2001 From: lim114514 <1941068@qq.com> Date: Sun, 26 Jan 2025 11:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E4=BB=96=E5=A6=88=E7=9A=84=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 0037cd0..352a7b0 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -57,6 +57,6 @@ pub fn generate_string(len_min: i64, len_max: i64) -> String { pub fn generate_username(config: &Arc) -> String { config.username_prefix().to_string() + generate_string( - 2,16-config.username_prefix().len() as i64 + 2,32-config.username_prefix().len() as i64 ).to_string().as_str() } \ No newline at end of file