aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/password/password.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/password/password.go')
-rw-r--r--modules/auth/password/password.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/password/password.go b/modules/auth/password/password.go
index c66b62937f..a1e101dd62 100644
--- a/modules/auth/password/password.go
+++ b/modules/auth/password/password.go
@@ -101,7 +101,7 @@ func Generate(n int) (string, error) {
buffer := make([]byte, n)
maxInt := big.NewInt(int64(len(validChars)))
for {
- for j := 0; j < n; j++ {
+ for j := range n {
rnd, err := rand.Int(rand.Reader, maxInt)
if err != nil {
return "", err