Issue 18405: crypt.mksalt() result has unnecessarily low entropy (original) (raw)
With my change, any character can appear more than once. Example:
crypt.mksalt() '$6$idm7/asaywTgRf9V' sorted(_[3:]) ['/', '7', '9', 'R', 'T', 'V', 'a', 'a', 'd', 'f', 'g', 'i', 'm', 's', 'w', 'y']
In this case, the 'a' letter occurs twice.