Skip to content

Commit

Permalink
Use PlatformDependent.threadLocalRandom()
Browse files Browse the repository at this point in the history
  • Loading branch information
jchrys committed Apr 15, 2024
1 parent 9d8d2ae commit 4c03f4f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import io.netty.util.internal.MacAddressUtil;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.SystemPropertyUtil;
import io.netty.util.internal.ThreadLocalRandom;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;

Expand Down Expand Up @@ -58,7 +57,7 @@ public static DefaultChannelId newInstance() {
PROCESS_ID,
nextSequence.getAndIncrement(),
Long.reverse(System.nanoTime()) ^ System.currentTimeMillis(),
ThreadLocalRandom.current().nextInt());
PlatformDependent.threadLocalRandom().nextInt());
}

static {
Expand Down

0 comments on commit 4c03f4f

Please sign in to comment.