commit | 2a1c933d3ea33642671a17a11ecfb21f448c3f9d | [log] [tgz] |
---|---|---|
author | Almaz Mingaleev <mingaleev@google.com> | Thu Jun 09 11:54:28 2022 +0100 |
committer | Almaz Mingaleev <mingaleev@google.com> | Fri Jun 10 14:35:53 2022 +0100 |
tree | 24c139bdeceed6f8adc23f843db07219039c3386 | |
parent | 089c119f4deeb975edff0538726d27ab27d11b91 [diff] |
Do not preload ThreadLocalRandom class. ThreadLocalRandom.seeder field uses time in its initialization. Preloading the class fixes initial state of ThreadLocalRandom, which leads to the same sequence of generated numbers across different app runs. Bug: 234816154 Test: verified manually that TLR.current().nextInt does not return the same sequence of numbers. Change-Id: I80868217e02862e8d0a568ea096e22e919ec06e3 Merged-In: I80868217e02862e8d0a568ea096e22e919ec06e3