void (int threadNumber, int[] ids, Random threadRandom, int queryCount) { if (threadNumber % 2 == 1) { // linear scan for every second_case final int blackHole = threadRandom.nextInt(); int currentId = 0; for (int j = 0; j < queryCount; ++j) { final int hash = getPath(currentId++, ids); if (currentId == ids.length) currentId = 0; if (blackHole == hash) { failure(); } } return; } LONG_RANDOM_ACCESS_WITH_GET_PATH.doTest(threadNumber, ids, threadRandom, queryCount); }