Various Random things (Was: Java 8 RFC 7189139: BigInteger's staticRandom field can be a source of bottlenecks)

Brian Burkhalter brian.burkhalter at oracle.com
Wed Sep 4 00:11:09 UTC 2013


On Sep 3, 2013, at 5:09 PM, Doug Lea wrote:

> Only adding isProbablePrime seems to be an OK conservative
> move: no existing usages would be affected, but users would
> need to somehow be told that they could improve performance
> by changing their code to use the new method with
> ThreadLocalRandom.current() as argument.

This is what I was thinking. Some verbiage update would be in order.

Thanks,

Brian


More information about the core-libs-dev mailing list