Skip to content

Commit

Permalink
Merge pull request #5 from alain-kermis-sonarsource/dev-1
Browse files Browse the repository at this point in the history
DEV-1 Init
  • Loading branch information
alain-kermis-sonarsource authored Oct 23, 2023
2 parents c0f5134 + 93aa978 commit 13b07e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/example/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 13b07e5

Please sign in to comment.