JDK-8210280 - Unnecessary reallocation when invoking HashMap.putAll()

Martin Buchholz martinrb at google.com
Wed Dec 19 15:15:56 UTC 2018


On Wed, Dec 19, 2018 at 6:59 AM Roger Riggs <Roger.Riggs at oracle.com> wrote:

> Hi Martin,
>
> It is also useful and conventional to print the seed of the random
> so that if necessary it can be reproduced.
>

For many years, we've been using ThreadLocalRandom for testing, and that
does not allow setting a seed.

I remain unconvinced that saving a seed has value in the real world.  When
a randomized test fails, running it with sufficient iterations has always
worked for me.


More information about the core-libs-dev mailing list