mirror of https://github.com/apache/lucene.git
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:
parent
5ea434e636
commit
1e4ece5fbd
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue