Skip to content

Commit

Permalink
More SonarCloud findings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hypfvieh committed Jul 13, 2024
1 parent 801f573 commit 00fda20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.nio.file.attribute.PosixFilePermission;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.text.Collator;
import java.util.*;

Expand All @@ -54,7 +55,7 @@ public class SASL {
// stop reading when reaching ~1MByte of data
private static final int MAX_READ_BYTES = 1024 * 1024;

private static final Random RANDOM = new Random();
private static final Random RANDOM = new SecureRandom();

private static final Collator COL = Collator.getInstance();
static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public String getObjectPath() {

@Override
public float testfloat(float[] _f) {
logger.debug("got float: " + Arrays.toString(_f));
logger.debug("got float: {}", Arrays.toString(_f));
return _f[0];
}

Expand Down

0 comments on commit 00fda20

Please sign in to comment.