mirror of
https://github.com/volatiletech/authboss.git
synced 2025-02-15 14:03:17 +02:00
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.