Skip to content

Commit 793ad90

Browse files
committed
[#noissue] Cleanup
1 parent 55f9058 commit 793ad90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

collector/src/main/java/com/navercorp/pinpoint/collector/heatmap/dao/pinot/PinotHeatmapDao.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ private int randomPartitionSuffix() {
5959
if (keyPartitionCount <= 1) {
6060
return 0;
6161
}
62-
int nonNegativeRandom = ThreadLocalRandom.current().nextInt() & 0x7fffffff;
63-
return nonNegativeRandom % keyPartitionCount;
62+
return ThreadLocalRandom.current().nextInt(keyPartitionCount);
6463
}
6564
}

0 commit comments

Comments
 (0)