Skip to content

Commit

Permalink
File format
Browse files Browse the repository at this point in the history
  • Loading branch information
maikypedia committed Jan 27, 2024
1 parent 6c8fbe8 commit d7314a1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Provides default sources, sinks, and sanitizers for reasoning about random values that
* Provides default sources, sinks, and sanitizers for reasoning about random values that
* are not cryptographically secure, as well as extension points for adding your own.
*/

Expand All @@ -12,7 +12,7 @@ private import codeql.ruby.ApiGraphs
import codeql.ruby.frameworks.core.Kernel

/**
* Provides default sources, sinks, and sanitizers for reasoning about random values that
* Provides default sources, sinks, and sanitizers for reasoning about random values that
* are not cryptographically secure, as well as extension points for adding your own.
*/
module InsecureRandomness {
Expand Down Expand Up @@ -41,7 +41,8 @@ module InsecureRandomness {
this.getReceiver().asExpr().getExpr() instanceof SelfVariableAccess and
super.getMethodName() = "rand"
)
or this.(Kernel::KernelMethodCall).getMethodName() = "rand"
or
this.(Kernel::KernelMethodCall).getMethodName() = "rand"
}
}

Expand Down

0 comments on commit d7314a1

Please sign in to comment.