|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codenarc.rule.AbstractAstVisitorRule
groovy.org.codenarc.rule.security.InsecureRandomRule
class InsecureRandomRule extends AbstractAstVisitorRule
Reports usages of java.util.Random, which can produce very predictable results. If two instances of Random are created with the same seed and sequence of method calls, they will generate the exact same results. Use java.security.SecureRandom instead, which provides a cryptographically strong random number generator. SecureRandom uses PRNG, which means they are using a deterministic algorithm to produce a pseudo-random number from a true random seed. SecureRandom produces non-deterministic output. By default, this rule does not apply to test files.
Property Summary | |
---|---|
Class |
astVisitorClass
|
String |
doNotApplyToFilesMatching
|
String |
name
|
int |
priority
|
Property Detail |
---|
Class astVisitorClass
String doNotApplyToFilesMatching
String name
int priority
Groovy Documentation