mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Locale module screws string.letters, etc. in some cases (e.g. IDLE run)
This commit is contained in:
@@ -931,9 +931,9 @@ def randomStr(length=4, lowercase=False, alphabet=None):
|
||||
if alphabet:
|
||||
retVal = "".join(random.choice(alphabet) for _ in xrange(0, length))
|
||||
elif lowercase:
|
||||
retVal = "".join(random.choice(string.lowercase) for _ in xrange(0, length))
|
||||
retVal = "".join(random.choice(string.ascii_lowercase) for _ in xrange(0, length))
|
||||
else:
|
||||
retVal = "".join(random.choice(string.letters) for _ in xrange(0, length))
|
||||
retVal = "".join(random.choice(string.ascii_letters) for _ in xrange(0, length))
|
||||
|
||||
return retVal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user