Return early when generating all strings with complexity <= 0

This commit is contained in:
2025-04-24 19:14:44 -04:00
parent 8f98e0b577
commit a95bff8ef4
+1 -1
View File
@@ -165,7 +165,7 @@ func StringGen(length int, complexity float64, complexCharsetLevel uint8) string
}
// return early if the string is not complex
if complexity == 0 {
if complexity <= 0 {
return string(result)
}