Skip to content

Commit eb8f27f

Browse files
committed
minor change to the random generator (excuse to trigger a release).
1 parent 8a4e0a0 commit eb8f27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/lemire/integercompression/synth/UniformDataGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int[] generateUniformHash(int N, int Max) {
4242
int[] ans = new int[N];
4343
HashSet<Integer> s = new HashSet<Integer>();
4444
while (s.size() < N)
45-
s.add(new Integer(this.rand.nextInt(Max)));
45+
s.add(this.rand.nextInt(Max));
4646
Iterator<Integer> i = s.iterator();
4747
for (int k = 0; k < N; ++k)
4848
ans[k] = i.next().intValue();

0 commit comments

Comments
 (0)