mirror of https://github.com/axmolengine/axmol.git
resets random seed before each test
This commit is contained in:
parent
b697e2bc99
commit
0d96a0ce40
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue