From 347ec4590d6aae63edeb9460a8a6206fadd1cedf Mon Sep 17 00:00:00 2001 From: Zihaoxu2008 Date: Sun, 26 Jan 2025 11:48:57 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=8E=BB=E4=BB=96=E5=A6=88=E7=9A=84?= =?UTF-8?q?=E9=99=90=E5=88=B6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 339d6fab82efb0e8dba1f3b01594e23ed88fa3f5. --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 352a7b0..0037cd0 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,32-config.username_prefix().len() as i64 + 2,16-config.username_prefix().len() as i64 ).to_string().as_str() } \ No newline at end of file