From 9c272cebe89f11a0c5b7d0cc6d35e11b25c5275d Mon Sep 17 00:00:00 2001 From: "J.C. Jones" Date: Fri, 1 May 2015 22:06:38 -0700 Subject: [PATCH] Resolve comments from PR #141 --- core/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/util.go b/core/util.go index 467ebe930..51ec48a0f 100644 --- a/core/util.go +++ b/core/util.go @@ -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()