]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 17 Apr 2018 14:09:14 +0000 (15:09 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 17 Apr 2018 14:09:14 +0000 (15:09 +0100)
etc/profile.d/functions

index b9fce3e16ab20159e670fddaa9e0eb25c974e8e4..a4ccfe9491f9f4a40a69399fe5d5458f0ce1621f 100644 (file)
@@ -834,7 +834,8 @@ http_head() {
 }
 
 password_create() {
-       tr -cd '[:alnum:]' < /dev/urandom | head -c${1:-30}
+       #tr -cd '[:alnum:]' < /dev/urandom | head -c${1:-30}
+       tr -cd '!-~' < /dev/urandom | head -c${1:-30}
        echo
 }