io.codemodder.codemods.make-prng-seed-unpredictable.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-codemods Show documentation
Show all versions of core-codemods Show documentation
Codemods for fixing common errors across many Java projects
rules:
- id: make-prng-seed-unpredictable
patterns:
- pattern: (Random $X).setSeed($NUM)
- metavariable-regex:
metavariable: $NUM
regex: ([0-9]+L?)
message: Semgrep found a match
languages:
- java
severity: WARNING