Skip to content

Commit 6c8fbe8

Browse files
committed
Changes
1 parent a3ae8bd commit 6c8fbe8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ruby/ql/lib/codeql/ruby/security/InsecureRandomnessCustomizations.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)