Make IgniteDbPutGetAbstractTest#testRandomRemove() actually use random order
@@ -765,14 +765,14 @@ public abstract class IgniteDbPutGetAbstractTest extends IgniteDbAbstractTest {
/** */
private static int[] generateUniqueRandomKeys(int cnt, Random rnd) {
- int[] keys = new int[cnt];
+ Integer[] keys = new Integer[cnt];
for (int i = 0; i < cnt; i++)
keys[i] = i;
- Collections.shuffle(Arrays.asList(keys));
+ Collections.shuffle(Arrays.asList(keys), rnd);
- return keys;
+ return Arrays.stream(keys).mapToInt(x -> x).toArray();
}
/**
