Skip to content

Commit

Permalink
microsoft#910 RootIds generated by TelemetryCorrelationUtils can be <…
Browse files Browse the repository at this point in the history
… 32 characters
  • Loading branch information
Vitaliy Levashin authored and Vitaliy Levashin committed Jul 31, 2019
1 parent 8abe83e commit 1409b67
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,7 @@ static String extractRootId(String parentId) {
}

private static String generateRootId() {
UUID guid = UUID.randomUUID();
long least = guid.getLeastSignificantBits();
long most = guid.getMostSignificantBits();

return Long.toHexString(most) + Long.toHexString(least);
return UUID.randomUUID().toString().replace("-", "");
}

private static String generateId(String parentId) {
Expand Down

0 comments on commit 1409b67

Please sign in to comment.