dsmiley commented on a change in pull request #214:
URL: https://github.com/apache/solr/pull/214#discussion_r682001012



##########
File path: solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java
##########
@@ -104,10 +105,10 @@ public SSLRandomizer(double ssl, double clientAuth, 
String debug) {
     public SSLTestConfig createSSLTestConfig() {
       // even if we know SSL is disabled, always consume the same amount of 
randomness
       // that way all other test behavior should be consistent even if a user 
adds/removes @SuppressSSL
-      
-      final boolean useSSL = TestUtil.nextInt(LuceneTestCase.random(), 0, 999) 
<
+      Random random = new Random();

Review comment:
       Yes, in both a test context or benchmark context, we want 
reproducibility.  Thus `new Random()` (that which I commented on here) is never 
okay.  Maybe Solr requires some new random supplier utility that either uses 
RandomizedTesting if it's available (detect via reflection?), and if not then 
something vaguely similar with a fixed seed (possibly with sys prop) & 
ThreadLocalRandom?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to