From 29a0069dc7b4b2e754c1c4bc9878b095be992b83 Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Sat, 9 Aug 2014 17:05:33 +0200 Subject: [PATCH] Better var name to avoid confusion with type name. --- uniuri.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uniuri.go b/uniuri.go index 41e5719..600e640 100644 --- a/uniuri.go +++ b/uniuri.go @@ -58,8 +58,8 @@ func NewLenChars(length int, chars []byte) string { if _, err := io.ReadFull(rand.Reader, r); err != nil { panic("error reading from random source: " + err.Error()) } - for _, byte := range r { - c := int(byte) + for _, rb := range r { + c := int(rb) if c > maxrb { // Skip this number to avoid modulo bias. continue