From 321900bc1a223e658ba76d6a5eefef5c2e3c4c3a Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Wed, 12 Feb 2025 21:20:58 +0330 Subject: [PATCH] Use kernel for UUID generation --- core/scripts/hysteria2/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/hysteria2/install.sh b/core/scripts/hysteria2/install.sh index a68f525..ed2e466 100644 --- a/core/scripts/hysteria2/install.sh +++ b/core/scripts/hysteria2/install.sh @@ -53,7 +53,7 @@ EOF echo "Generating passwords and UUID..." obfspassword=$(pwgen -s 32 1) - UUID=$(uuidgen) + UUID=$(cat /proc/sys/kernel/random/uuid) chown hysteria:hysteria /etc/hysteria/ca.key /etc/hysteria/ca.crt chmod 640 /etc/hysteria/ca.key /etc/hysteria/ca.crt