-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Performance
-
ALL
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 ) );