Fix the number of characters being put out from genpasswd (#143)

This commit is contained in:
Cyryl Płotnicki 2017-10-17 15:44:57 +01:00 committed by GitHub
parent a9c977c1ce
commit ee50512d40

View file

@ -1,4 +1,4 @@
#!/bin/bash
l=$1
[ "$l" == "" ] && l=32
openssl rand -base64 $l
openssl rand -base64 $l | cut -c-$l