Commit 50e40834 authored by t steve's avatar t steve
Browse files

fixing annoying srand reset from cddlib

parent 2b5d56a8
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment