commit | 9e449649eb79b0277a58f709e7b88d581d40e0fd | [log] [tgz] |
---|---|---|
author | Almaz Mingaleev <mingaleev@google.com> | Thu Jun 09 11:54:28 2022 +0100 |
committer | Almaz Mingaleev <mingaleev@google.com> | Thu Jun 09 16:31:03 2022 +0100 |
tree | e259deca1e62723f19fc43ba60deb82d21aff680 | |
parent | dc04d7f06cd611a8747b8047152c4a7a382e5def [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