Fix wo secure --sshport

This commit is contained in:
VirtuBox
2019-10-08 11:17:07 +02:00
parent 07755b13ff
commit 4181b49e5d
3 changed files with 22 additions and 5 deletions

View File

@@ -5,7 +5,13 @@ import string
class RANDOM:
"""Random strings generator"""
def gen(self):
def long(self):
long_random = ''.join([random.choice
(string.ascii_letters + string.digits)
for n in range(24)])
return long_random
def short(self):
short_random = ''.join([random.choice
(string.ascii_letters + string.digits)
for n in range(24)])