commit | b192344234dcee215462e6218cf1c4384b9916f1 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu Mar 02 19:26:44 2017 +0000 |
committer | Narayan Kamath <narayan@google.com> | Wed Mar 08 10:07:03 2017 +0000 |
tree | 990982dd7557155e89e2ffb7fc0b0472f7927cab | |
parent | 07be4d67813bdda4479e0e5a482f76b3f52160e7 [diff] |
MathUtils: Remove static Random field. This is unsafe because the random will be seeded in the zygote, which means all processes on the system generate the same sequence of random numbers. Fortunately, this code is only used in tests, so get rid of it. Note that the Random that backs Math.random() is reseeded after every fork to avoid a similar issue. Bug: 35918685 Test: HwAccelerationTest Change-Id: Ice79aa25bb9017f7a0b91659afe04112850cb74b