projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
testing: limit random port range to probably unused ports
[awesomized/libmemcached]
/
test
/
lib
/
random.cpp
diff --git
a/test/lib/random.cpp
b/test/lib/random.cpp
index 3681fcc8727a3aaeec768f5abe27eee25c6ce883..359c1f3487ad5a2e97c78b3ed8d685d1b7a7e7ea 100644
(file)
--- a/
test/lib/random.cpp
+++ b/
test/lib/random.cpp
@@
-5,7
+5,7
@@
unsigned random_port() {
retry:
- auto port = random_num(
2<<9, 2<<15
);
+ auto port = random_num(
5000, 32000
);
Connection conn(port);
if (!conn.open()) {