add randomization of eve's listening port on launch

This commit is contained in:
Stephen Birarda 2013-04-23 15:46:57 -07:00
parent 2b7095925d
commit a4244da27e

View file

@ -91,7 +91,7 @@ int main(int argc, const char* argv[]) {
srand(time(0));
// create an AgentList instance to handle communication with other agents
AgentList* agentList = AgentList::createInstance(AGENT_TYPE_AVATAR, 55441);
AgentList* agentList = AgentList::createInstance(AGENT_TYPE_AVATAR, randIntInRange(1500, 65000));
// start telling the domain server that we are alive
agentList->startDomainServerCheckInThread();