Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
Description
makeClockSeqAndNode uses java.util.Random to generate the clock. Random only has 48-bits of internal state so it's not going to generate the best bits for clock and in addition to that it uses a collision prone seed that sort of defeats the purpose of clock sequence.
A better approach to get the most out of those 14-bits would be to use SecureRandom with something like SHA1PRNG.