Skip to content

Commit

Permalink
Fixes test glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Cole authored and adriancole committed Nov 14, 2017
1 parent 5bb25f5 commit 554867e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ enum TraceIdsSortedByDescTimestamp implements Call.Mapper<Map<String, Long>, Set
for (Map.Entry<String, Long> entry : map.entrySet()) {
BigInteger uncollided = BigInteger.valueOf(entry.getValue())
.multiply(OFFSET)
.add(BigInteger.valueOf(RAND.nextInt()));
.add(BigInteger.valueOf(RAND.nextInt() & Integer.MAX_VALUE));
sorted.put(uncollided, entry.getKey());
}
return new LinkedHashSet<>(sorted.values());
Expand Down

0 comments on commit 554867e

Please sign in to comment.