Releases: Masterminds/goutils
Releases · Masterminds/goutils
Correct the output of the RandomAlpha functions
This release corrects an error in the RandomAlphaNumeric(int)
and CryptoRandomAlphaNumeric(int)
functions. We have issued a security advisory for this change:
The functions RandomAlphaNumeric(int) and CryptoRandomAlphaNumeric(int) are not as random as they should be. Small values of int in the functions above will return a smaller subset of results than they should. For example, RandomAlphaNumeric(1) will always return a digit in the 0-9 range, while RandomAlphaNumeric(4) will return around ~7 million of the ~13M possible permutations.
See the related Security Advisory
New Crypto Random Utils
This release adds cryptographic secure versions of the random generators.
Release 1.0.1
Fixed
- #21: Fix generation of alphanumeric strings (thanks @dbarranco)
First Release
1.0.0 Doc clean up