Skip to content

Commit

Permalink
Use 56 bit random bit for correlation id
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Haraldsen committed Nov 18, 2024
1 parent be0c3ac commit 9dcaf3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public MultiValueMap<String, HttpCookie> getCookies()
private static String generateId()
{
final String timestampPart = Long.toString(Instant.now().toEpochMilli(), 36);
final String randomPart = new BigInteger(48, ThreadLocalRandom.current()).toString(36);
final String randomPart = new BigInteger(56, ThreadLocalRandom.current()).toString(36);
return timestampPart + "-" + randomPart;
}

Expand Down

0 comments on commit 9dcaf3c

Please sign in to comment.