Skip to content

Commit 677b404

Browse files
committed
Update naming
1 parent 3efb825 commit 677b404

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/lib/github/cryptography/WeakPRNG.qll renamed to python/lib/github/cryptography/RandomNumberGenerator.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ private import semmle.python.dataflow.new.DataFlow
44

55
abstract class RandomNumberGeneratorSinks extends DataFlow::Node { }
66

7-
class OSRandom extends RandomNumberGeneratorSinks {
8-
OSRandom() {
7+
class OsRandom extends RandomNumberGeneratorSinks {
8+
OsRandom() {
99
exists(DataFlow::Node call |
1010
// https://docs.python.org/3/library/os.html#os.getrandom
1111
call = API::moduleImport("os").getMember("getrandom").getACall() and

python/src/security/CWE-338/WeakPRNG.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
import python
15-
import github.crytography.WeakPRNG
15+
import github.cryptography.RandomNumberGenerator
1616

1717
from RandomNumberGeneratorSinks rngs
1818
select rngs.asExpr(), "Using weak PRNG"

0 commit comments

Comments
 (0)