Only generate ids up to 2^63 - 1
This commit is contained in:
parent
bf4587c23d
commit
e7ac8e7668
|
@ -614,7 +614,7 @@ public class DDTracer implements io.opentracing.Tracer, Closeable, datadog.trace
|
|||
// case
|
||||
BigInteger value;
|
||||
do {
|
||||
value = new BigInteger(64, ThreadLocalRandom.current());
|
||||
value = new BigInteger(63, ThreadLocalRandom.current());
|
||||
} while (value.signum() == 0);
|
||||
|
||||
return value;
|
||||
|
|
Loading…
Reference in New Issue