diff --git a/videodev-simulation.cc b/videodev-simulation.cc index 56ff557..678fc6c 100644 --- a/videodev-simulation.cc +++ b/videodev-simulation.cc @@ -206,11 +206,15 @@ Simulation::Simulation() { void Simulation::Reset() { int i; + static int first = 1; LockMutex(); - time_t t = time(NULL); - srand (t); + if(first) { + time_t t = time(NULL); + srand (t); + first = 0; + } // // object movement