resets random seed before each test

This commit is contained in:
Ricardo Quesada 2013-08-31 15:49:25 -07:00
parent b697e2bc99
commit 0d96a0ce40
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,7 @@ void NodeChildrenMainScene::initWithQuantityOfNodes(unsigned int nNodes)
updateQuantityOfNodes();
updateProfilerName();
CC_PROFILER_PURGE_ALL();
srandom(0);
});
decrease->setColor(Color3B(0,200,20));
auto increase = MenuItemFont::create(" + ", [&](Object *sender) {
@ -162,6 +163,7 @@ void NodeChildrenMainScene::initWithQuantityOfNodes(unsigned int nNodes)
updateQuantityOfNodes();
updateProfilerName();
CC_PROFILER_PURGE_ALL();
srandom(0);
});
increase->setColor(Color3B(0,200,20));
@ -182,6 +184,7 @@ void NodeChildrenMainScene::initWithQuantityOfNodes(unsigned int nNodes)
updateQuantityLabel();
updateQuantityOfNodes();
updateProfilerName();
srandom(0);
}
std::string NodeChildrenMainScene::title()