OpenSearch/plugins/lang-javascript
Jason Tedor 871d1b4885 Remove and forbid use of j.u.c.ThreadLocalRandom
This commit removes and now forbids all uses of
java.util.concurrent.ThreadLocalRandom across the codebase. The
underlying issue with ThreadLocalRandom is that it can not be
seeded. This means that if ThreadLocalRandom is used in production code,
then tests that cover any code path containing ThreadLocalRandom will be
prevented from being reproducible by use of ThreadLocalRandom. Instead,
using org.elasticsearch.common.random.Randomness#get will give
reproducible sources of random when running under tests and otherwise
still give an instance of ThreadLocalRandom when running as production
code.
2016-01-08 12:23:48 -05:00
..
licenses upgrade rhino for plugins/lang-javascript 2015-11-03 09:53:07 -05:00
src Remove and forbid use of j.u.c.ThreadLocalRandom 2016-01-08 12:23:48 -05:00
build.gradle Remove more Xlint skips 2016-01-06 23:53:05 -05:00