From 30c7609c10c912eb58854c86788fcbe515b4e0cd Mon Sep 17 00:00:00 2001 From: myteron Date: Thu, 12 Dec 2024 09:23:16 +0000 Subject: [PATCH] Update docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md Signed-off-by: myteron --- .../CWE-693/CWE-330/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md b/docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md index b7fb8cfd..929c75ba 100644 --- a/docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md +++ b/docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md @@ -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 #####################