slisaasquatch commented on pull request #233:
URL: 
https://github.com/apache/httpcomponents-client/pull/233#issuecomment-653648418


   @michael-o No, I don't have any numbers. I just thought it was an easy 
improvement to make.
   @ok2c `ThreadLocalRandom` is not really a regular `ThreadLocal` that's used 
to store a temporary state. The purpose of `ThreadLocalRandom` is to avoid 
synchronization. Basically all the `new Random()` calls can be safely replaced 
with `ThreadLocalRandom.current()` without negative side effects. [Here's the 
official 
documentation](https://docs.oracle.com/javase/tutorial/essential/concurrency/threadlocalrandom.html).


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to