On Mon, 2014-08-11 at 08:06 -0700, Andi Kleen wrote: > Gary Benson <gben...@redhat.com> writes: > > >srand(time(NULL)); > > That's really bad, can never be reproduced. If you use a random seed > like this you need to at least print it.
How about taking the random seed and the number of iterations as command-line arguments? (with defaults for each)