[ 
https://issues.apache.org/jira/browse/KAFKA-9904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939012#comment-17939012
 ] 

Lorcan commented on KAFKA-9904:
-------------------------------

Hi [~belugabehr], is this something that you'd advise should be replaced 
mostly/completely in the codebase? Or should this be more targeted for the 
scenarios described in the oracle docs? 

I've seen some instances where a Random object is initialised with a particular 
seed, which doesn't seem possible with the ThreadLocalRandom class. It also 
seems to be used for convenience in some of the Scala files to lazily generate 
random strings.

The reason I ask is due to a lack of experience with distributed systems and so 
any insight would be helpful.

> Use ThreadLocalConcurrent to Replace Random
> -------------------------------------------
>
>                 Key: KAFKA-9904
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9904
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: David Mollitor
>            Assignee: Lorcan
>            Priority: Trivial
>
> https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadLocalRandom.html



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to