mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Fixing query & test
This commit is contained in:
@@ -60,11 +60,12 @@ module Random {
|
||||
any(MethodCall mc |
|
||||
mc.getQualifier().getType().(RefType).hasQualifiedName("System", "Random")
|
||||
or
|
||||
// by using `% 87` on a `byte`, this function has a bias
|
||||
// by using `% 87` on a `byte`, `System.Web.Security.Membership.GeneratePassword` has a bias
|
||||
mc.getQualifier()
|
||||
.getType()
|
||||
.(RefType)
|
||||
.hasQualifiedName("System.Web.Security", "GeneratePassword")
|
||||
.hasQualifiedName("System.Web.Security", "Membership") and
|
||||
mc.getTarget().hasName("GeneratePassword")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user