5dca6d1e3d6cd6bbf3622ed94f66d5f592faad48
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
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%