Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
ALL
Description
rand() returns an integer between 0 and RAND_MAX, which is 32767 on posix systems. Thus using #RAND_INT in benchRun() will not create an even distribute for a large range. See bench.cpp L300:
int x = min + ( rand() % ( max - min ) );