Resolve comments from PR #141

This commit is contained in:
J.C. Jones 2015-05-01 22:06:38 -07:00
parent 1543a71c3e
commit 9c272cebe8
1 changed files with 2 additions and 1 deletions

View File

@ -70,9 +70,10 @@ func B64dec(x string) ([]byte, error) {
// Random stuff
// RandomString returns a randomly generated string of the requested length.
func RandomString(byteLength int) string {
b := make([]byte, byteLength)
_, err := io.ReadFull(rand.Reader, b) // NOTE: Ignoring errors
_, err := io.ReadFull(rand.Reader, b)
if err != nil {
ohdear := "RandomString entropy failure? " + err.Error()
logger := blog.GetAuditLogger()