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 {
2222 abstract class Source extends DataFlow:: Node { }
2323
2424 /**
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.
2626 */
2727 abstract class Sink extends DataFlow:: Node { }
2828
@@ -36,8 +36,6 @@ module InsecureRandomness {
3636 */
3737 class DefaultSource extends Source , DataFlow:: CallNode {
3838 DefaultSource ( ) {
39- this = API:: getTopLevelMember ( "Random" ) .getAMethodCall ( [ "rand" ] )
40- or
4139 this .asExpr ( ) .getExpr ( ) instanceof UnknownMethodCall and
4240 (
4341 this .getReceiver ( ) .asExpr ( ) .getExpr ( ) instanceof SelfVariableAccess and
You can’t perform that action at this time.
0 commit comments