From b01a71f32db710b8bd0061a20106ddcfdc5f1abe Mon Sep 17 00:00:00 2001 From: Yunheng Liu <121078488+Kookiejarz@users.noreply.github.com> Date: Wed, 4 Mar 2026 22:13:08 -0500 Subject: [PATCH] Replace random string generation method with OpenSSL for better randomness in install.sh The previous implementation using cat /dev/urandom | tr caused tr to hang and consume 100% CPU on certain environments (e.g., GCP, specific kernels) due to delayed SIGPIPE handling. Using openssl provides a finite, cryptographically secure string that eliminates this CPU spike and is noticeably faster." --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 9d1aeb6b..6a64e115 100644 --- a/install.sh +++ b/install.sh @@ -105,10 +105,12 @@ install_base() { gen_random_string() { local length="$1" - local random_string=$(LC_ALL=C tr -dc 'a-zA-Z0-9'