@Override public RotBatch createRot(int otherId, Network network) { if (getMyId() == otherId) { throw new IllegalArgumentException("Cannot initialize with self"); } CoinTossing ct = new CoinTossing(getMyId(), otherId, getRandomGenerator()); ct.initialize(network); OtExtensionResourcePool otResources = new OtExtensionResourcePoolImpl(getMyId(), otherId, getPrgSeedLength(), getLambdaSecurityParam(), getInstanceId(), getRandomGenerator(), ct, seedOts.get(otherId)); return new BristolRotBatch(new RotFactory(otResources, network), getPrgSeedLength(), getLambdaSecurityParam()); }
this.supplier = () -> { RotList rotList = new RotList(drbg, computationalSecurity); CoinTossing ct = new CoinTossing(myId, Util.otherPlayerId(myId), drbg); OtExtensionResourcePool otExtRes = new OtExtensionResourcePoolImpl(myId, Util.otherPlayerId(myId),