mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-09-03 07:37:28 -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
|
// return early if the string is not complex
|
||||||
if complexity == 0 {
|
if complexity <= 0 {
|
||||||
return string(result)
|
return string(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user