diff options
Diffstat (limited to 'x-ui.sh')
| -rw-r--r-- | x-ui.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -243,8 +243,9 @@ reset_user() { gen_random_string() { local length="$1" - local random_string=$(LC_ALL=C tr -dc 'a-zA-Z0-9' </dev/urandom | fold -w "$length" | head -n 1) - echo "$random_string" + openssl rand -base64 $(( length * 2 )) \ + | tr -dc 'a-zA-Z0-9' \ + | head -c "$length" } reset_webbasepath() { |
