mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
+1
-1
@@ -12,7 +12,7 @@ def random_key(l=16):
|
||||
:param integer l: the key's length
|
||||
:return: a string
|
||||
"""
|
||||
char_set = string.printable
|
||||
char_set = string.digits + string.letters + string.punctuation
|
||||
return ''.join(random.sample(char_set * l, l))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user