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