SIGN IN SIGN UP

Update password_generator.py (#7745)

* Update password_generator.py

1. Use secrets module instead of random for passwords as it gives a secure source of randomness
2. Add type annotations for functions
3. Replace ctbi (variable for the characters to be included) with a more meaningful and short name
4. Use integer division instead of obtaining the integer part of a division computing a floating point

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
P
Pronoy Mandal committed
18ffc4dec85a85837f71cd6c9b1e630b9d185001
Parent: b0f68a0
Committed by GitHub <noreply@github.com> on 10/29/2022, 12:54:13 PM