From a95bff8ef49a264555102428e1ab3684538bb45b Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 24 Apr 2025 19:14:44 -0400 Subject: [PATCH] Return early when generating all strings with complexity <= 0 --- core/utilitiesMisc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utilitiesMisc.go b/core/utilitiesMisc.go index 1900ec1..dfbebff 100644 --- a/core/utilitiesMisc.go +++ b/core/utilitiesMisc.go @@ -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) }