---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
---
S311.py:10:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
 9 | # Errors
10 | random.Random()
   | ^^^^^^^^^^^^^^^ S311
11 | random.random()
12 | random.randrange()
   |

S311.py:11:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
 9 | # Errors
10 | random.Random()
11 | random.random()
   | ^^^^^^^^^^^^^^^ S311
12 | random.randrange()
13 | random.randint()
   |

S311.py:12:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
10 | random.Random()
11 | random.random()
12 | random.randrange()
   | ^^^^^^^^^^^^^^^^^^ S311
13 | random.randint()
14 | random.choice()
   |

S311.py:13:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
11 | random.random()
12 | random.randrange()
13 | random.randint()
   | ^^^^^^^^^^^^^^^^ S311
14 | random.choice()
15 | random.choices()
   |

S311.py:14:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
12 | random.randrange()
13 | random.randint()
14 | random.choice()
   | ^^^^^^^^^^^^^^^ S311
15 | random.choices()
16 | random.uniform()
   |

S311.py:15:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
13 | random.randint()
14 | random.choice()
15 | random.choices()
   | ^^^^^^^^^^^^^^^^ S311
16 | random.uniform()
17 | random.triangular()
   |

S311.py:16:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
14 | random.choice()
15 | random.choices()
16 | random.uniform()
   | ^^^^^^^^^^^^^^^^ S311
17 | random.triangular()
18 | random.randbytes()
   |

S311.py:17:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
15 | random.choices()
16 | random.uniform()
17 | random.triangular()
   | ^^^^^^^^^^^^^^^^^^^ S311
18 | random.randbytes()
   |

S311.py:18:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
   |
16 | random.uniform()
17 | random.triangular()
18 | random.randbytes()
   | ^^^^^^^^^^^^^^^^^^ S311
19 | 
20 | # Unrelated
   |
