parent
cc4efe69bf
commit
aa81d26d08
10
abra
10
abra
@ -656,10 +656,20 @@ checkout_main_or_master() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pwgen_native() {
|
pwgen_native() {
|
||||||
|
if type pwgen > /dev/null 2>&1; then
|
||||||
|
pwgen -s "$length" 1
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c "$1"
|
tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
pwqgen_native() {
|
pwqgen_native() {
|
||||||
|
if type pwqgen > /dev/null 2>&1; then
|
||||||
|
pwqgen
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
shuf -n 3 /usr/share/dict/words | tr -dc 'a-zA-Z0-9' | tr -d '\n'
|
shuf -n 3 /usr/share/dict/words | tr -dc 'a-zA-Z0-9' | tr -d '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user