mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-24 05:17:10 +02:00
b7cec028b9
There have been bugs filed in other libraries where rand.Read() simply returns all 0s, instead use io.ReadFull to ensure that we get the amount of bytes we want. - Use io.ReadFull(rand.Reader, ...) instead of rand.Read() for getting randomness from crypto/rand.