Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -235,12 +235,6 @@ void ScriptEngine::init() { · 234 unmodified lines | ||
| 235 | 235 | // let the VoxelPacketSender know how frequently we plan to call it |
| 236 | 236 | _voxelsScriptingInterface.getVoxelPacketSender()->setProcessCallIntervalHint(SCRIPT_DATA_CALLBACK_USECS); |
| 237 | 237 | _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 | − | |
| 244 | 238 | } |
| 245 | 239 | |
| 246 | 240 | void ScriptEngine::registerGlobalObject(const QString& name, QObject* object) { |