diff options
-rwxr-xr-x | bin/gen-password | 2 | ||||
-rwxr-xr-x | bin/uuid | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/gen-password b/bin/gen-password index 758845c..244d971 100755 --- a/bin/gen-password +++ b/bin/gen-password @@ -69,6 +69,6 @@ shift $((OPTIND - 1)) LENGTH="${1:-999}" -tr -cd '[:alnum:]' < /dev/random | +tr -cd '[:alnum:]' < /dev/urandom | fold -w "$LENGTH" | head -n1 @@ -17,7 +17,7 @@ help() { -h, --help show this message - Generate UUID from /dev/random. + Generate UUID from /dev/urandom. Examples: @@ -59,5 +59,5 @@ while getopts 'h' flag; do done shift $((OPTIND - 1)) -od -xN20 /dev/random | +od -xN20 /dev/urandom | awk 'NR == 1 { OFS="-"; print $2$3,$4,$5,$6,$7$8$9; exit }' |