From 3b88fa0de65cc5bca0694d7a062ccf82ccfc4751 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sun, 17 Feb 2019 22:53:39 +0100 Subject: [PATCH] use ynh_string_random --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3d45188..7cde37c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,7 +77,7 @@ fi if [ -z "$hashed_password" ]; then # Generate random password - password=$(openssl rand -hex 8) + password=$(ynh_string_random --length=8) hashed_password=$(echo -n $password | sha256sum | cut -d' ' -f1) echo "The new version of LSTU provide an admin and a stats area which required a password.