Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit b2e4050

Browse files
authored
Update generator.py
1 parent 7cb34d6 commit b2e4050

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/recursive password generator/generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import random
2+
import string
23

34
def stretch(text,maxlength):
45
if len(text) < maxlength:
@@ -8,7 +9,7 @@ def stretch(text,maxlength):
89
return text
910

1011
def get_random_char():
11-
chars = 'abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*?'
12+
chars = string.printable
1213
randomChar = chars[random.randint(0,len(chars)-1)]
1314
return randomChar
1415

0 commit comments

Comments
 (0)