Call reset right before using the clock.

This commit is contained in:
Benjamin Ellenberger 2017-06-04 20:47:31 +02:00
parent b5a80a08aa
commit 4a169d180e

View File

@ -160,8 +160,8 @@ public:
m_filterCallback(NULL)
{
b3Clock clock;
srand(clock.getTimeMilliseconds()); // Set random milliseconds based on system time
clock.reset(true); // Reset clock to zero to get new random seed
srand(clock.getTimeMilliseconds()); // Set random milliseconds based on system time
}
virtual ~NN3DWalkersExample()