Improve code quality
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-08-05 21:36:44 +02:00
parent 9ad074bb51
commit c3c1b99f1b
5 changed files with 7 additions and 17 deletions

View File

@@ -14,14 +14,14 @@ public class CursorMover extends TimerTask
{
private static final Logger LOGGER = LogManager.getLogger(CursorMover.class);
private final Random RANDOM;
private final Random random;
private static final int LOOPS_BEFORE_CLICK = 5;
private int iteration = 0;
public CursorMover() {
RANDOM = new SecureRandom();
random = new SecureRandom();
}
@Override
@@ -45,8 +45,8 @@ public class CursorMover extends TimerTask
iteration = 0;
} else {
destX = RANDOM.nextInt(RunnerUtil.SCREEN_WIDTH);
destY = RANDOM.nextInt(RunnerUtil.SCREEN_HEIGHT);
destX = random.nextInt(RunnerUtil.SCREEN_WIDTH);
destY = random.nextInt(RunnerUtil.SCREEN_HEIGHT);
singleStepMovementTask = new SingleStepMovementTask(destX, destY, false);