diff options
author | Jong Wook Kim <jongwook@google.com> | 2018-01-31 19:03:19 -0800 |
---|---|---|
committer | Jong Wook Kim <jongwook@google.com> | 2018-02-07 01:28:46 +0000 |
commit | f0a55cc9eda84f90ad8b96784c4afa9a25e82801 (patch) | |
tree | f0bd1ba01080a24da20469dae3f748402f650d98 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 9193014ee63b3ad007f74eb2b2f2fd741c6b6388 (diff) |
MacAddress: Use SecureRandom and add a 46 bit randomized MAC generator
Use SecureRandom instead of Random since Random is time based and can
increase the chance of generating same MAC address across multiple
devices.
createRandomUnicastAddress should randomize all bits of the address,
except for locally assigned bit and unicast bit. The previous method
that only randomizes NIC and use Google Base OUI is renamed to
createRandomUnicastAddressWithGoogleBase.
Bug: 72450936
Test: runtest frameworks-net
Change-Id: Icda650638c2c1c9fd90d509a87e86347c0e05f2d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions