@Override public SpdzSInt getNextBit() { ensureInitialized(); if (randomBits.isEmpty()) { logger.trace("Getting another bit batch"); randomBits.addAll(mascot.getRandomBits(batchSize)); logger.trace("Got another bit batch"); } return MascotFormatConverter.toSpdzSInt(randomBits.pop()); }