Tweak panic message.
This commit is contained in:
parent
46cf8faafd
commit
396b73a566
@ -63,7 +63,7 @@ func NewLenChars(length int, chars []byte) string {
|
|||||||
i := 0
|
i := 0
|
||||||
for {
|
for {
|
||||||
if _, err := rand.Read(r); err != nil {
|
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 {
|
for _, rb := range r {
|
||||||
c := int(rb)
|
c := int(rb)
|
||||||
|
Loading…
Reference in New Issue
Block a user