CodeQL library for Java/Kotlin
codeql/java-all 3.0.1 (changelog, source)
Search

Predicate unsafelySeeded

Holds if predictable seed source is used to initialise a random-number generator used at use.

Import path

import semmle.code.java.security.RandomQuery
predicate unsafelySeeded(VarRead use, PredictableSeedExpr source)