Skip to content

Commit

Permalink
Resolve comments from PR #141
Browse files Browse the repository at this point in the history
  • Loading branch information
J.C. Jones committed May 2, 2015
1 parent 1543a71 commit 9c272ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9c272ce

Please sign in to comment.