mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-21 21:30:50 +01:00
Update variable name in random.go
Changed the abbreviation 'idx' to 'i' in the 'random.go' file. This change makes the variable roles much clearer and aligns the naming with Go's best practice, enhancing readability and maintainability.
This commit is contained in:
parent
6c9b875f58
commit
514e68be54
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ func randomStringSecure(length int) (string, error) {
|
|||
}
|
||||
char, rest = binary.BigEndian.Uint64(randPool), letterIdxMax
|
||||
}
|
||||
if idx := int(char & letterIdxMask); idx < charRangeLength {
|
||||
randString.WriteByte(cr[idx])
|
||||
if i := int(char & letterIdxMask); i < charRangeLength {
|
||||
randString.WriteByte(cr[i])
|
||||
idx--
|
||||
}
|
||||
char >>= letterIdxBits
|
||||
|
|
Loading…
Reference in a new issue