1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Updated Readme

This commit is contained in:
Krateng
2020-08-18 04:55:36 +02:00
parent 2484015261
commit 7f3b7031ac
4 changed files with 12 additions and 4 deletions

View File

@@ -23,11 +23,12 @@ def copy_initial_local_files():
#shutil.copy(folder,DATA_DIR)
dir_util.copy_tree(folder,datadir(),update=False)
charset = list(range(10)) + list("abcdefghijklmnopqrstuvwxyz") + list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
def randomstring(length=32):
import random
key = ""
for i in range(length):
key += str(random.choice(list(range(10)) + list("abcdefghijklmnopqrstuvwxyz") + list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")))
key += str(random.choice(charset))
return key
def setup():