Make genpasswd work on both Linux and Mac (#141)
This commit is contained in:
parent
9e312857b9
commit
ba6222b92c
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
l=$1
|
||||
[ "$l" == "" ] && l=32
|
||||
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs
|
||||
openssl rand -base64 $l
|
||||
|
|
Loading…
Reference in a new issue