#include #include #include #include #include #include #include #include #include #include using namespace std; int main(int argc, char **argv) { uint64_t chunk=100000000, inside=0; double start = omp_get_wtime(); drand48_data buffer; // This buffer stores the data for the // random number generator // This buffer must be initialized first memset(&buffer, '\0',sizeof(struct drand48_data)); // Then we randomize the generator srand48_r(time(0),&buffer); int nchunk=0; while (1) { for (uint64_t j=0; j