Fixing query & test

This commit is contained in:
Raul Garcia (MSFT)
2021-08-04 19:37:57 -07:00
parent 8544356f90
commit 7340a1293f
3 changed files with 25 additions and 2 deletions

View File

@@ -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")
)
}
}