diff --git a/core/java/test/net/i2p/crypto/ElGamalTest.java b/core/java/test/net/i2p/crypto/ElGamalTest.java index 7789f99d9f8f857c52803e3e5bf1b4959bc2f58e..c917219adf38caeb8b9f5472277a176ff39dc7fa 100644 --- a/core/java/test/net/i2p/crypto/ElGamalTest.java +++ b/core/java/test/net/i2p/crypto/ElGamalTest.java @@ -372,8 +372,10 @@ public class ElGamalTest extends TestCase{ public void testYKGen(){ RandomSource.getInstance().nextBoolean(); + I2PAppContext context = new I2PAppContext(); + YKGenerator ykgen = new YKGenerator(context); for (int i = 0; i < 5; i++) { - YKGenerator.getNextYK(); + ykgen.getNextYK(); } } -} \ No newline at end of file +}