Files
codeql/python/ql/test/experimental/query-tests/Security/CWE-338/InsecureRandomness.py
liangjinhuang 1102f60f3e add tests
2021-12-04 00:52:15 +08:00

6 lines
120 B
Python

import random
def generatePassword():
# BAD: the random is not cryptographically secure
return random.random()