Call reset right before using the clock.
This commit is contained in:
@@ -160,8 +160,8 @@ public:
|
|||||||
m_filterCallback(NULL)
|
m_filterCallback(NULL)
|
||||||
{
|
{
|
||||||
b3Clock clock;
|
b3Clock clock;
|
||||||
srand(clock.getTimeMilliseconds()); // Set random milliseconds based on system time
|
|
||||||
clock.reset(true); // Reset clock to zero to get new random seed
|
clock.reset(true); // Reset clock to zero to get new random seed
|
||||||
|
srand(clock.getTimeMilliseconds()); // Set random milliseconds based on system time
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~NN3DWalkersExample()
|
virtual ~NN3DWalkersExample()
|
||||||
|
|||||||
Reference in New Issue
Block a user