-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linter: gosec, Rule: G404 - Insecure random number source (rand). Should we enable it? #12949
Comments
+1 - Looks like primarily tests |
Hmmm we do not necessarily need cryptographic secure RNGs e.g. for quantile sample. My main concern is that with |
@srebhan So maybe we can filter out findings in tests:
And review findings for production code only:
Will you have time to take a look? Or maybe even to open a PR? ;) |
@zak-pawel +1 for ignoring the tests. Regarding your question: No time until mid of May so I don't think you can expect a PR from my side... :-( |
Use Case
This issue starts discussion about enabling:
Rule is mapped to CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Expected behavior
Decision if rule should be enabled or not.
Actual behavior
For this rule following findings were found in current code:
Additional info
For this rule no additional configuration can be provided.
The text was updated successfully, but these errors were encountered: