Skip to content

Commit

Permalink
Update docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md
Browse files Browse the repository at this point in the history
Signed-off-by: myteron <[email protected]>
  • Loading branch information
myteron authored Dec 12, 2024
1 parent f5283d4 commit 30c7609
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ In `noncompliant01.py`, we generate a random web token using Python's random mod
# SPDX-License-Identifier: MIT
""" Non-compliant Code Example """
import random


def generate_web_token():
"""Poor random number generator"""
return random.randrange(int("1" + "0" * 31), int("9" * 32), 1)


#####################
# attempting to exploit above code example
#####################
Expand Down

0 comments on commit 30c7609

Please sign in to comment.