From 169b216d7eba1641f46dd8ab4b64dfb8f0a5cc2f Mon Sep 17 00:00:00 2001 From: Yunheng Liu <121078488+Kookiejarz@users.noreply.github.com> Date: Wed, 1 Apr 2026 07:59:48 -0400 Subject: perf: replace /dev/urandom | tr with openssl rand to fix CPU spike (#3887) --- x-ui.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'x-ui.sh') diff --git a/x-ui.sh b/x-ui.sh index e9e2d831..e26dcce2 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -243,8 +243,9 @@ reset_user() { gen_random_string() { local length="$1" - local random_string=$(LC_ALL=C tr -dc 'a-zA-Z0-9'