Merge "MediaMetricsManagerService: Unify logSessionId representation" into sc-dev
This commit is contained in:
@@ -195,7 +195,7 @@ public final class MediaMetricsManagerService extends SystemService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getSessionIdInternal(int userId) {
|
private String getSessionIdInternal(int userId) {
|
||||||
byte[] byteId = new byte[16]; // 128 bits
|
byte[] byteId = new byte[12]; // 96 bits (128 bits when expanded to Base64 string)
|
||||||
mSecureRandom.nextBytes(byteId);
|
mSecureRandom.nextBytes(byteId);
|
||||||
String id = Base64.encodeToString(
|
String id = Base64.encodeToString(
|
||||||
byteId, Base64.NO_PADDING | Base64.NO_WRAP | Base64.URL_SAFE);
|
byteId, Base64.NO_PADDING | Base64.NO_WRAP | Base64.URL_SAFE);
|
||||||
|
|||||||
Reference in New Issue
Block a user