/** Returns the random generator. */ private static Random getRandom() { if (_isTest) { return _testRandom; } Random random = _freeRandomList.allocate(); if (random == null) random = new SecureRandom(); return random; }