History

remove seed to random number generator that is no longer needed

Stephen Birarda committed 12 years ago

Commit f0f3cf71 parent 7190ce91 file · +0 −6Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+0−6
@@ -235,12 +235,6 @@ void ScriptEngine::init() { · 234 unmodified lines
235235 // let the VoxelPacketSender know how frequently we plan to call it
236236 _voxelsScriptingInterface.getVoxelPacketSender()->setProcessCallIntervalHint(SCRIPT_DATA_CALLBACK_USECS);
237237 _particlesScriptingInterface.getParticlePacketSender()->setProcessCallIntervalHint(SCRIPT_DATA_CALLBACK_USECS);
238−
239− // call srand to seed the random number generator
240− srand(QDateTime::currentMSecsSinceEpoch()
241− + QCoreApplication::applicationPid()
242− + NodeList::getInstance()->getNodeSocket().localPort());
243−
244238 }
245239
246240 void ScriptEngine::registerGlobalObject(const QString& name, QObject* object) {