Now using SecureRandom.
This commit is contained in:
parent
8c3d850f54
commit
e953f1962e
1 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ package net.thauvin.erik.mobibot.modules;
|
||||||
import net.thauvin.erik.mobibot.Mobibot;
|
import net.thauvin.erik.mobibot.Mobibot;
|
||||||
import net.thauvin.erik.mobibot.Utils;
|
import net.thauvin.erik.mobibot.Utils;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.security.SecureRandom;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The War module.
|
* The War module.
|
||||||
|
@ -73,7 +73,7 @@ final public class War extends AbstractModule {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void commandResponse(final Mobibot bot, final String sender, final String args, final boolean isPrivate) {
|
public void commandResponse(final Mobibot bot, final String sender, final String args, final boolean isPrivate) {
|
||||||
final Random r = new Random();
|
final SecureRandom r = new SecureRandom();
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int y;
|
int y;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue