2 #include "cln/GV_integer.h"
4 int test_I_GV (int iterations)
8 for (i = iterations; i > 0; i--) {
9 uintL m = random32() % 70;
10 uintL len = random32() % 64;
11 cl_GV_I v = cl_GV_I(len,m);
12 cl_I M = random_I((cl_I)1 << m) + 1; // 0 < M <= 2^m
15 for (j = 0; j < len; j++)
16 v[j] = mod(a*(j*j),M);
17 for (j = len-1; j >= 0; j--)
18 ASSERT4(v[j] == mod(a*(j*j),M), m,len,M,j);