mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed a typo
This commit is contained in:
parent
5bf0cafd43
commit
23842a932e
@ -8,7 +8,7 @@ import random
|
||||
import string
|
||||
|
||||
def gen_random_string(size,preffix=None):
|
||||
random_string = ''.join(random.SystemRandom().choice(string.ascii_uppercase string.digits) for _ in range(size))
|
||||
random_string = ''.join(random.SystemRandom().choice(string.ascii_uppercase+string.digits) for _ in range(size))
|
||||
if preffix:
|
||||
return preffix+random_string
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user