Tweak panic message.
This commit is contained in:
parent
46cf8faafd
commit
396b73a566
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue