Class PolynomialGenerator
- java.lang.Object
-
- org.bouncycastle.pqc.math.ntru.polynomial.test.PolynomialGenerator
-
public class PolynomialGenerator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PolynomialGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntegerPolynomialgenerateRandom(int N, int q)Creates a random polynomial withNcoefficients between0andq-1.
-
-
-
Method Detail
-
generateRandom
public static IntegerPolynomial generateRandom(int N, int q)
Creates a random polynomial withNcoefficients between0andq-1.- Parameters:
N- length of the polynomialq- coefficients will all be below this number- Returns:
- a random polynomial
-
-