summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetManager2.cpp
diff options
context:
space:
mode:
author Joanne <joannechung@google.com> 2022-07-26 12:48:27 +0800
committer Joanne <joannechung@google.com> 2022-07-26 16:51:54 +0800
commit87ff6d9dd0fd87515e43c7e979f4f5b3b89a0c97 (patch)
treea874a74110bd7ff7fcb05807c6f3427f99e4fc58 /libs/androidfw/AssetManager2.cpp
parent7cbb2a39a6fe939253c1f75dcaeca401d6a88b09 (diff)
Fix translation session id collision bug.
Currently the session id is genrated from a static random number generator created with new Random(), all has the same seed value in the given Context, so the sequence it generates is identical across processes Ideally the id should be generated from a center controller to avoid collision, the content capture met the same problem before. Follow the same solution used in content capture, we use SecureRandom which produces non-deterministic output. But it still good to come out a more stable solution in the future release. Bug: 239385816 Test: manual Change-Id: Ie75acfa6a55a58e0c0a709f2a5ae1c6e5d6dc339
Diffstat (limited to 'libs/androidfw/AssetManager2.cpp')
0 files changed, 0 insertions, 0 deletions