RE: Password Generator 01-26-2014, 06:17 PM
#6
Why are you using os functions to open/close? Just recursively call a function with all the generation code in it if the user wants another password.
Instead of random.choice(chars) do
It is faster, uses less code, and looks neater.
(94 printable english characters in ascii, they start at 32)
Instead of random.choice(chars) do
Code:
chr(random.randint(94) + 32 )It is faster, uses less code, and looks neater.
(94 printable english characters in ascii, they start at 32)







![[+]](https://sinister.li/images/modern/collapse_collapsed.png)