mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 21:30:09 +00:00
Call reset right before using the clock.
This commit is contained in:
parent
b5a80a08aa
commit
4a169d180e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user