Prevent instantiating utility classes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-16 07:07:42 +01:00
parent ccf69a2903
commit 980cf5eef3
18 changed files with 73 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ import java.util.Random;
public class RandomUtil
{
private RandomUtil() {
throw new IllegalStateException("Utility class");
}
// the Random instance that we should always use when looking for an RNG based thing.
// the seed is updated periodically, if the random.org integration is enabled.
private static Random randomInstance = new SecureRandom();