mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
Return early when generating all strings with complexity <= 0
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user