Class PolynomialGenerator
java.lang.Object
org.bouncycastle.pqc.math.ntru.polynomial.test.PolynomialGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerPolynomialgenerateRandom(int N, int q) Creates a random polynomial withNcoefficients between0andq-1.
-
Constructor Details
-
PolynomialGenerator
public PolynomialGenerator()
-
-
Method Details
-
generateRandom
Creates a random polynomial withNcoefficients between0andq-1.- Parameters:
N- length of the polynomialq- coefficients will all be below this number- Returns:
- a random polynomial
-