Spdz2kResourcePoolImpl extends ResourcePoolImpl implements Spdz2kResourcePool<PlainT> { @Override public Drbg getRandomGenerator() { if (drbg == null) { throw new IllegalStateException("Joint drbg must be initialized before use"); } return drbg; } Spdz2kResourcePoolImpl(int myId, int noOfPlayers, Drbg drbg,
      OpenedValueStore<Spdz2kSInt<PlainT>, PlainT> storage,
      Spdz2kDataSupplier<PlainT> supplier, CompUIntFactory<PlainT> factory); @Override int getMaxBitLength(); @Override OpenedValueStore<Spdz2kSInt<PlainT>, PlainT> getOpenedValueStore(); @Override Spdz2kDataSupplier<PlainT> getDataSupplier(); @Override CompUIntFactory<PlainT> getFactory(); @Override void initializeJointRandomness(Supplier<Network> networkSupplier,
      Function<byte[], Drbg> drbgGenerator, int seedLength); @Override FieldDefinition getFieldDefinition(); @Override BigInteger getModulus(); @Override Drbg getRandomGenerator(); @Override Drbg getLocalRandomGenerator();  }
@Test(expected = IllegalStateException.class) public void testGetDrbgBeforeInit() { resourcePool.getRandomGenerator(); }