From c07857b93826e18934ec530edf3191aaaac150dc Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 30 Sep 2020 11:58:21 +0200 Subject: [PATCH] testing: limit random port range to probably unused ports --- test/lib/random.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.30.2