Skip to content
Snippets Groups Projects
Commit 50e40834 authored by t steve's avatar t steve
Browse files

fixing annoying srand reset from cddlib

parent 2b5d56a8
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,8 @@ bool Equilibrium::setNewContacts(const MatrixX3& contactPoints, const MatrixX3&
computeGenerators(contactPoints,contactNormals,frictionCoefficient,true);
attempts--;
}
// resetting random because obviously libcdd always resets to 0
srand(time(NULL));
if(!m_is_cdd_stable)
{
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment