pumasecurity / puma-scan

Puma Scan is a software security Visual Studio extension that provides real time, continuous source code analysis as development teams write code. Vulnerabilities are immediately displayed in the development environment as spell check and compiler warnings, preventing security bugs from entering your applications.
https://www.pumascan.com
Mozilla Public License 2.0
443 stars 82 forks source link

Supression Pragmas or way to turn off warnings ? #75

Open mikerg87 opened 1 year ago

mikerg87 commented 1 year ago

SEC0115 System.Random does not provide cryptographically random numbers. Consider using the System.Security.Cryptography.RNGCryptoServiceProvider for random values used in a security context.

Is there anyway to supress the issue with #pragma or similar directive ? Problem is that I'm using random() for Monte Carlo routine in part of the app and it's definitely not security in this instance. These are just piling up masking things we really do need to assess and fix.