mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #51 from mmdriley/master
Use a CSPRNG to generate passwords.
This commit is contained in:
commit
8b9e504574
@ -88,6 +88,6 @@ function get-password {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
user=admin
|
user=admin
|
||||||
passwd=$(python -c 'import string,random; print "".join(random.choice(string.ascii_letters + string.digits) for _ in range(16))')
|
passwd=$(python -c 'import string,random; print "".join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(16))')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user