-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Make the random seed accessible inside the tests #331
Copy link
Copy link
Closed
Description
It would be gread if you could access the random seed inside the tests.
In this way, one could generate pseudo random numbers out of this seed and then
test the functions with random inputs.
The problem now is, that when we test something with a random seed like
"time(NULL)", and we have an error, it is really hard to see, what the actual
input arguments to the function where.
However, if this is connected to the googletest random seed, one can reproduce
it exactly like the order of the gtest_shuffle, and has really deterministic
and repeatable results based on the (random) seed...
Original issue reported on code.google.com by rgg...@gmail.com on 19 Nov 2010 at 9:13
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels