From: Michael Wallner Date: Wed, 30 Sep 2020 09:58:21 +0000 (+0200) Subject: testing: limit random port range to probably unused ports X-Git-Tag: 1.1.0-beta1~236^2~32 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c07857b93826e18934ec530edf3191aaaac150dc;p=awesomized%2Flibmemcached testing: limit random port range to probably unused ports --- diff --git a/test/lib/random.cpp b/test/lib/random.cpp index 3681fcc8..359c1f34 100644 --- 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()) {