Query module RandomUsedOnce

name
Random used only once
description
Creating an instance of ‘Random’ for each pseudo-random number required does not guarantee an evenly distributed sequence of random numbers.
kind
problem
problem.severity
warning
precision
low
id
cs/random-used-once
tags
reliability maintainability external/cwe/cwe-335

Imports

csharp

The default C# QL library.

Predicates