[
https://issues.apache.org/jira/browse/RNG-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16782882#comment-16782882
]
Gilles commented on RNG-78:
---------------------------
At line 84, why is the field {{source}} protected rather than private?
> ThreadLocalRandomSource
> -----------------------
>
> Key: RNG-78
> URL: https://issues.apache.org/jira/browse/RNG-78
> Project: Commons RNG
> Issue Type: New Feature
> Components: simple
> Affects Versions: 1.3
> Reporter: Alex D Herbert
> Assignee: Alex D Herbert
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Implement a helper class that can provide thread-local
> {{UniformRandomProvider}} instances.
> This can be used as an equivalent of {{ThreadLocalRandom}}:
> {code:java}
> // c.f.
> Random random = ThreadLocalRandom.current();
> // Access a thread-safe random number generator
> UniformRandomProvider rng =
> ThreadLocalRandomSource.current(RandomSource.SPLIT_MIX_64);
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)