 }
 void rand_exp(int *e) {
 	for (int i=0; i<num; i++) {
-		e[i] = 1;//(unsigned)rand()>>1;
+		e[i] = (unsigned)rand()>>1;
 		if (e[i] < 0) {
 			printf("Error: random exponent has opposite value.\n");
 			exit(-1);

*/

// Test all inline device mod P = 2^64-2^32+1 operations.

#include "ModP.h"
#include "../cuhe/Debug.h"
#include <time.h>
#include <stdio.h>

		ptr[i] = rand();
		ptr[i] <<= 32*(rand()%2);
		ptr[i] |= rand();
	}
}
void rand_offset(int *l) {
