Files
codeql/python/ql/test/experimental/query-tests/Security/CWE-338/InsecureRandomness.py
2026-06-15 16:15:17 +01:00

6 lines
130 B
Python

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