mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 06:16:18 +02:00
seed random generator to make tests reproducable
This commit is contained in:
parent
47c0e2266f
commit
9e0f010edd
1 changed files with 3 additions and 0 deletions
|
@ -238,6 +238,9 @@ void ModelTests::modelTreeTests(bool verbose) {
|
|||
}
|
||||
|
||||
{
|
||||
// seed the random number generator so that our tests are reproducible
|
||||
srand(0xFEEDBEEF);
|
||||
|
||||
testsTaken++;
|
||||
const int TEST_ITERATIONS = 10000;
|
||||
QString testName = "Performance - add model to tree " + QString::number(TEST_ITERATIONS) + " times";
|
||||
|
|
Loading…
Reference in a new issue