3 ms·
I also noticed when I tried to search for "secure password generation golang" nearly all examples use math/rand. And to make things worse all of them initialize
by takeda 2y ago
I also noticed when I tried to search for "secure password generation golang" nearly all examples use math/rand. And to make things worse all of them initialize seed with current time just before generating the password.
This was discovered after I found in our code someone used math rand and was curious where they copied it from :)