Skip to content

Commit 410f21c

Browse files
smowtonMarcono1234
andauthored
Fix comment describing two-arg nextInt/nextLong
Co-authored-by: Marcono1234 <[email protected]>
1 parent fa51af5 commit 410f21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/semmle/code/java/security/Random.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class StdlibRandomSource extends RandomDataSource {
110110

111111
override Expr getUpperBoundExpr() {
112112
// If this call is to `nextInt(int)` or `nextLong(long)`, the upper bound is the first argument.
113-
// If it calls `nextInt(int, int)` or `nextLong(long, long)`, the upper bound is the first argument.
113+
// If it calls `nextInt(int, int)` or `nextLong(long, long)`, the upper bound is the second argument.
114114
m.hasName(["nextInt", "nextLong"]) and
115115
(
116116
m.getNumberOfParameters() = 1 and

0 commit comments

Comments
 (0)