File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
ruby/ql/lib/codeql/ruby/security Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module InsecureRandomness {
22
22
abstract class Source extends DataFlow:: Node { }
23
23
24
24
/**
25
- * AA data flow sink for random values that are not cryptographically secure.
25
+ * A data flow sink for random values that are not cryptographically secure.
26
26
*/
27
27
abstract class Sink extends DataFlow:: Node { }
28
28
@@ -36,8 +36,6 @@ module InsecureRandomness {
36
36
*/
37
37
class DefaultSource extends Source , DataFlow:: CallNode {
38
38
DefaultSource ( ) {
39
- this = API:: getTopLevelMember ( "Random" ) .getAMethodCall ( [ "rand" ] )
40
- or
41
39
this .asExpr ( ) .getExpr ( ) instanceof UnknownMethodCall and
42
40
(
43
41
this .getReceiver ( ) .asExpr ( ) .getExpr ( ) instanceof SelfVariableAccess and
You can’t perform that action at this time.
0 commit comments