Fix test case

This commit is contained in:
Ed Minnix
2023-11-29 11:35:44 -05:00
parent 1271cd3348
commit 7362158229
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import java
import semmle.code.java.dataflow.DataFlow
import semmle.code.java.security.WeakRandomnessQuery
import semmle.code.java.security.InsecureRandomnessQuery
import TestUtilities.InlineExpectationsTest
module WeakRandomTest implements TestSig {
@@ -8,7 +8,7 @@ module WeakRandomTest implements TestSig {
predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasWeakRandomFlow" and
exists(DataFlow::Node sink | WeakRandomnessFlow::flowTo(sink) |
exists(DataFlow::Node sink | InsecureRandomnessFlow::flowTo(sink) |
sink.getLocation() = location and
element = sink.toString() and
value = ""