Skip to content

Commit

Permalink
Remove explicit conversion to int
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Nov 14, 2024
1 parent c10b0dd commit 12a4522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand/rand.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func RandomString(length int, charset string) (string, error) {
if err != nil {
return "", err
}
b[i] = charset[int(j)]
b[i] = charset[j]
}

return string(b), nil
Expand Down

0 comments on commit 12a4522

Please sign in to comment.