MCPcopy Create free account
hub / github.com/Bashfuscator/Bashfuscator / _getSizes

Method _getSizes

bashfuscator/core/engine/random.py:227–244  ·  view source on GitHub ↗
(self, minLen, maxLen)

Source from the content-addressed store, hash-verified

225 return randStr
226
227 def _getSizes(self, minLen, maxLen):
228 if minLen is None or maxLen is None:
229 if self.sizePref == 1:
230 defaultMinLen = 1
231 elif self.sizePref == 2:
232 defaultMinLen = 4
233 else:
234 defaultMinLen = 8
235
236 defaultMaxLen = defaultMinLen * 2
237
238 if minLen is None:
239 minLen = defaultMinLen
240
241 if maxLen is None:
242 maxLen = defaultMaxLen
243
244 return (minLen, maxLen)

Callers 3

randGenVarMethod · 0.95
randUniqueStrMethod · 0.95
randGenStrMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected