Files
codeql/python/ql/test/experimental/query-tests/Security/CWE-338/InsecureRandomness.py
2026-06-19 12:22:40 +01:00

6 lines
130 B
Python

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