mirror of
https://github.com/lldap/lldap.git
synced 2026-03-31 15:07:48 +01:00
generate_secrets: improve portability
Updated print_random function definition to be compatible with multiple default shells
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
function print_random () {
|
print_random () {
|
||||||
LC_ALL=C tr -dc 'A-Za-z0-9!#%&()*+,-./:;<=>?@[\]^_{|}~' </dev/urandom | head -c 32
|
LC_ALL=C tr -dc 'A-Za-z0-9!#%&()*+,-./:;<=>?@[\]^_{|}~' </dev/urandom | head -c 32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user