Add backend API to receive a random password

This commit is contained in:
cami 2021-07-17 01:45:11 +02:00
parent ecb06e812d
commit 6da747d632
2 changed files with 10 additions and 2 deletions

View file

@ -9,7 +9,8 @@ def get_random_value(list_length):
random_select = randint(0, list_length)
return random_select
def get_password():
def get_random_password():
first_part = [
"Der Vogel",
@ -48,4 +49,4 @@ def get_password():
password += " " + str(third_part[get_random_value(len(third_part)-1)])
password += " " + str(forth_part[get_random_value(len(forth_part)-1)])
return password
return password