mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-27 06:09:56 -04:00
Return early when generating all strings with complexity <= 0
This commit is contained in:
1 parent
8f98e0b577
commit
a95bff8ef4
1 file changed
+1
-1
@@ -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