|
I changed the code as follows, sorry it is not in diff format.
Essentially
remove the assembly language section and define and set tsc=0 which causes the later code to use another random gen method. static int have_perfc =1; static int have_tsc = 0;//add line #ifndef __GNUC__ /* //add line static int have_tsc = 1; DWORD cyclecount; if (have_tsc) { __try { __asm { rdtsc mov cyclecount, eax } RAND_add(&cyclecount, sizeof(cyclecount), 1); } __except(EXCEPTION_EXECUTE_HANDLER) { have_tsc = 0; } } */ //add line #else
|
