Skip to content

Commit

Permalink
just to satisfy sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Jun 12, 2024
1 parent b31d584 commit e16f7d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.security.SecureRandom;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
Expand All @@ -50,7 +51,7 @@ public record ExportedPlayerBrush(
double angleHeightDifference
) implements BrushSettings {

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

public ExportedPlayerBrush(@NotNull Builder builder) {
this(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;

import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
Expand All @@ -51,7 +52,7 @@
public final class PlayerBrush implements BrushSettings {

private final @NotNull PlayerBrushManager brushManager;
private final @NotNull Random random = new Random();
private final @NotNull Random random = new SecureRandom();

private boolean maskEnabled;
private boolean enabled;
Expand Down

0 comments on commit e16f7d1

Please sign in to comment.