lewismc opened a new pull request #571:
URL: https://github.com/apache/nutch/pull/571


   This PR addresses https://issues.apache.org/jira/browse/NUTCH-2851
   I chose the following proposed fix...
   
   Create a constant Random in the offending class
   ```
   private static final Random RANDOM = new Random();
   ```
   We then reuse as follows
   ```
   RANDOM.nextInt();
   ```
   This way, no new instances are created.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to