Skip to content

Commit 2d4ce3a

Browse files
Update docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md
Co-authored-by: David A. Wheeler <[email protected]> Signed-off-by: BartyBoi1128 <[email protected]>
1 parent 96107ef commit 2d4ce3a

File tree

1 file changed

+2
-1
lines changed
  • docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330

1 file changed

+2
-1
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Python's `random` module is a standard library module that provides functions to
1212
Therefore, the `random` module is unsuitable for applications requiring security as it does not incorporate cryptographic randomness, which means it is predictable. Its use makes it easy for attackers to deduce the internal state of the generator and predict future outputs.
1313

1414

15-
Instead, for generating random numbers, it is recommended to use a more robust option, such as Python's `secrets` module.
15+
Instead, for generating random numbers for security purposes, use an appropriate option, such as Python's `secrets` module.
16+
1617

1718
## Non-compliant Code Example
1819

0 commit comments

Comments
 (0)