forked from External/mage
refactor : removed all instances of new Random() and replaced with RandomUtil for a ThreadLocal randomizer
This commit is contained in:
parent
f2cc8d4571
commit
e2a479255a
51 changed files with 173 additions and 133 deletions
|
|
@ -45,6 +45,7 @@ import mage.game.result.ResultProtos.MatchProto;
|
|||
import mage.game.result.ResultProtos.MatchQuitStatus;
|
||||
import mage.players.Player;
|
||||
import mage.util.DateFormat;
|
||||
import mage.util.RandomUtil;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
|
|
@ -243,7 +244,7 @@ public abstract class MatchImpl implements Match {
|
|||
}
|
||||
|
||||
protected void shufflePlayers() {
|
||||
Collections.shuffle(this.players, new Random());
|
||||
Collections.shuffle(this.players, RandomUtil.getRandom());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue