Make genpasswd work on both Linux and Mac (#141)

This commit is contained in:
Cyryl Płotnicki 2017-10-16 15:13:18 +01:00 committed by GitHub
parent 9e312857b9
commit ba6222b92c

View file

@ -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