mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-06 06:06:40 +00:00
Replaced All Instances of Random With SplittableRandom
SplittableRandom is faster (negligable) than Random and is also able to recursively return new instances of itself for an even more complex pseudo random generator compared to the default Random supplied by Java.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
package me.totalfreedom.totalfreedommod.command;
|
||||
|
||||
import java.util.Random;
|
||||
import java.util.SplittableRandom;
|
||||
import me.totalfreedom.totalfreedommod.rank.Rank;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Sound;
|
||||
@ -15,7 +15,7 @@ public class Command_deafen extends FreedomCommand
|
||||
{
|
||||
|
||||
public static final double STEPS = 10.0;
|
||||
private static final Random random = new Random();
|
||||
private static final SplittableRandom random = new SplittableRandom();
|
||||
|
||||
private static Location randomOffset(Location a)
|
||||
{
|
||||
|
Reference in New Issue
Block a user