diff --git a/source/glest_game/network/connection_slot.cpp b/source/glest_game/network/connection_slot.cpp index e20c3ad82..de5e4c0cb 100644 --- a/source/glest_game/network/connection_slot.cpp +++ b/source/glest_game/network/connection_slot.cpp @@ -364,7 +364,7 @@ void ConnectionSlot::update(bool checkForNewClients,int lockedSlotIndex) { if(socket != NULL) { //RandomGen random; //sessionKey = random.randRange(-100000, 100000); - srand(time(NULL)); + srand(time(NULL) / (this->playerIndex + 1)); sessionKey = rand() % 1000000; if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] accepted new client connection, serverInterface->getOpenSlotCount() = %d, sessionKey = %d\n",__FILE__,__FUNCTION__,__LINE__,serverInterface->getOpenSlotCount(),sessionKey);