OpenSearch/plugins/discovery-ec2
Jason Tedor 3383c24be0 Remove and forbid use of Collections#shuffle(List) and Random#<init>()
This commit removes and now forbids all uses of
Collections#shuffle(List) and Random#<init>() across the codebase. The
rationale for removing and forbidding these methods is to increase test
reproducibility. As these methods use non-reproducible seeds, production
code and tests that rely on these methods contribute to
non-reproducbility of tests.

Instead of Collections#shuffle(List) the method
Collections#shuffle(List, Random) can be used. All that is required then
is a reproducible source of randomness. Consequently, the utility class
Randomness has been added to assist in creating reproducible sources of
randomness.

Instead of Random#<init>(), Random#<init>(long) with a reproducible seed
or the aforementioned Randomess class can be used.

Closes #15287
2015-12-11 11:16:38 -05:00
..
licenses Upgrade to aws 1.10.33 2015-11-10 22:51:33 -05:00
src Remove and forbid use of Collections#shuffle(List) and Random#<init>() 2015-12-11 11:16:38 -05:00
build.gradle Add support for proxy authentication for s3 and ec2 2015-12-07 23:10:54 +01:00