diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java index 81f575f..0a86f5a 100644 --- a/src/main/java/org/example/Main.java +++ b/src/main/java/org/example/Main.java @@ -12,11 +12,18 @@ public static void main(String[] args) { try { Cipher des = Cipher.getInstance("DES"); // Noncompliant + Cipher des2 = Cipher.getInstance("DES"); // Noncompliant + Cipher des3 = Cipher.getInstance("DES"); // Noncompliant + SecureRandom sr = new SecureRandom(); sr.setSeed(123456L); // Noncompliant + sr.setSeed(123456L); // Noncompliant + sr.setSeed(123456L); // Noncompliant + sr.setSeed(123456L); // Noncompliant int v = Math.toIntExact(sr.nextLong()); + sr = new SecureRandom("abcdefghijklmnop".getBytes("us-ascii")); // Noncompliant sr = new SecureRandom("abcdefghijklmnop".getBytes("us-ascii")); // Noncompliant v = Math.toIntExact(sr.nextLong());