We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c10b0dd commit 12a4522Copy full SHA for 12a4522
rand/rand.go
@@ -12,7 +12,7 @@ func RandomString(length int, charset string) (string, error) {
12
if err != nil {
13
return "", err
14
}
15
- b[i] = charset[int(j)]
+ b[i] = charset[j]
16
17
18
return string(b), nil
0 commit comments