From 396b73a566d0993675357e6648bb98587a6162b4 Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Sat, 4 Apr 2015 00:46:40 +0200 Subject: [PATCH] Tweak panic message. --- uniuri.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniuri.go b/uniuri.go index d4b0d75..6393446 100644 --- a/uniuri.go +++ b/uniuri.go @@ -63,7 +63,7 @@ func NewLenChars(length int, chars []byte) string { i := 0 for { if _, err := rand.Read(r); err != nil { - panic("error reading from random source: " + err.Error()) + panic("uniuri: error reading random bytes: " + err.Error()) } for _, rb := range r { c := int(rb)