Permalink
Browse files

ugh, need coffee

  • Loading branch information...
1 parent 5438aa4 commit c5badecb968c3e0aabcad49bf1912b1621e4565a @RJ committed Feb 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/remotecollection.cpp
View
2 src/remotecollection.cpp
@@ -4,7 +4,7 @@
RemoteCollection::RemoteCollection(Servent * s, RemoteCollectionConnection * conn) :
QDaap::Collection(conn->name(), conn), m_servent(s), m_rcconn(conn)
{
- int port = (int)(qrand()*50000)/RAND_MAX;
+ int port = qrand() % 50000 + 10000;
qDebug() << "CTOR RemoteCollection, listening on " << port;
m_h = new Httpd(this, port);
}

0 comments on commit c5badec

Please sign in to comment.