Looks very like dumb inlined java.util.Random?
Is there a security threat to use ThreadLocalRandom instead there?

-Aleksey.

On 27.12.2012, at 23:16, Zhong Yu <zhong.j...@gmail.com> wrote:

> Reported by the SO question
> 
>    http://stackoverflow.com/questions/14010906
> 
> the HashMap constructor contains a CAS, which is kind of surprising.
> Could it be removed?
> 
>    transient final int hashSeed =
> sun.misc.Hashing.randomHashSeed(this);  // CAS
> 
> Zhong Yu

Reply via email to