Hey folks,
So I have 2 test cases that run within ~1 minute of each other. Basically I have this: 1 function is known to work; the other function is supposed to have the same behavior (each one is written a different way...the why is not important).
Anyway, I want to be able to run random test cases to compare the results from both functions. Right now I used a prng (twister) to do this, seeding both functions with the exact same number. Unfortunately this means I need to change the seed every time I run a test case.
So what I would like is to seed the prng with a different number each time I run the test case, BUT I need both functions to receive the same number. And since they don't run at the exact same time, using the system time is not a viable option...
Any ideas?
Thanks,
-Eric
So I have 2 test cases that run within ~1 minute of each other. Basically I have this: 1 function is known to work; the other function is supposed to have the same behavior (each one is written a different way...the why is not important).
Anyway, I want to be able to run random test cases to compare the results from both functions. Right now I used a prng (twister) to do this, seeding both functions with the exact same number. Unfortunately this means I need to change the seed every time I run a test case.
So what I would like is to seed the prng with a different number each time I run the test case, BUT I need both functions to receive the same number. And since they don't run at the exact same time, using the system time is not a viable option...
Any ideas?
Thanks,
-Eric