mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +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
|
char, rest = binary.BigEndian.Uint64(randPool), letterIdxMax
|
||||||
}
|
}
|
||||||
if idx := int(char & letterIdxMask); idx < charRangeLength {
|
if i := int(char & letterIdxMask); i < charRangeLength {
|
||||||
randString.WriteByte(cr[idx])
|
randString.WriteByte(cr[i])
|
||||||
idx--
|
idx--
|
||||||
}
|
}
|
||||||
char >>= letterIdxBits
|
char >>= letterIdxBits
|
||||||
|
|
Loading…
Reference in a new issue