reuse existing random object

This commit is contained in:
Athou
2013-07-26 15:34:14 +02:00
parent 080c0b48d0
commit 68ad6d8b55

View File

@@ -3,9 +3,9 @@ package com.commafeed.frontend.pages;
import java.io.StringWriter;
import java.util.Date;
import java.util.List;
import java.util.Random;
import java.util.UUID;
import org.apache.commons.lang.math.RandomUtils;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.request.handler.TextRequestHandler;
@@ -49,7 +49,7 @@ public class TestRssPage extends WebPage {
try {
// simulate internet lag
Thread.sleep(Math.abs(new Random().nextLong() % 5000));
Thread.sleep(Math.abs(RandomUtils.nextLong() % 5000));
} catch (InterruptedException e) {
// do nothing
}