LUCENE-4975: make forbidden-apis shut up: "new Random()" is bad, and LTC.random() says "RandomizedRunner prevents changing the seed of its random generators to assure repeatability of tests. If you need a mutable instance of Random, create a new instance, preferably with the initial seed aquired from this Random instance.", so switched to "new Random(random.nextLong())"

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1481971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2013-05-13 17:03:50 +00:00
parent 5ea434e636
commit 1e4ece5fbd
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ public abstract class ReplicatorTestCase extends LuceneTestCase {
}
server.setConnectors(new Connector[] {connector});
server.setSessionIdManager(new HashSessionIdManager(new Random()));
server.setSessionIdManager(new HashSessionIdManager(new Random(random().nextLong())));
server.start();