Merge commit from fork

Co-authored-by: ChatGPT <chatgpt@openai.com>
This commit is contained in:
Daniel Sandoval
2026-07-27 20:38:19 +02:00
committed by GitHub
co-authored by ChatGPT
parent 91d37126fa
commit 96fac69304
2 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func GenerateRandomString(length int, charset string) (string, error) {
// Discard bytes that are outside of the range
// This allows making sure that we maintain uniform distribution
idx := int(randomBytes[j%length] & letterIdxMask)
idx := int(randomBytes[j%bufferSize] & letterIdxMask)
if idx < len(charset) {
result.WriteByte(charset[idx])
i++