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 IntegerPolynomial
generateRandom(int N, int q)
Creates a random polynomial withN
coefficients between0
andq-1
.
-
-
-
Method Detail
-
generateRandom
public static IntegerPolynomial generateRandom(int N, int q)
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
-
-