mixin
mixin copied to clipboard
Fix rand.Read read less than 64 bytes issue on Mac OS X platform
maybe io.ReadFull should fix this?
maybe io.ReadFull should fix this?
rand.Read calls io.ReadFull inside, so replace rand.Read with io.ReadFull can't fix this issue.
See the source code in the following link:
https://golang.org/src/crypto/rand/rand.go?s=809:847#L13