branch | webgl |
changeset 8096 | 453917e94e55 |
parent 8091 | e0a76056a633 |
child 8094 | 6c5b4e69f03d |
child 10017 | de822cd3df3a |
--- a/project_files/frontlib/socket.c Wed Nov 14 00:23:29 2012 +0100 +++ b/project_files/frontlib/socket.c Thu Nov 22 00:41:53 2012 +0100 @@ -84,7 +84,7 @@ srand(time(NULL)); for(int i=0; !result->sock && i<1000; i++) { // IANA suggests using ports in the range 49152-65535 for things like this - result->port = 49152+(rand()%(65535-49152)); + result->port = 49152+(rand()%(65536-49152)); result->sock = listen(result->port); } }