summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Almaz Mingaleev <mingaleev@google.com> 2022-06-09 11:54:28 +0100
committer Almaz Mingaleev <mingaleev@google.com> 2022-06-10 14:35:53 +0100
commit2a1c933d3ea33642671a17a11ecfb21f448c3f9d (patch)
tree24c139bdeceed6f8adc23f843db07219039c3386 /api/api.go
parent089c119f4deeb975edff0538726d27ab27d11b91 (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
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions