testing: limit random port range to probably unused ports
authorMichael Wallner <mike@php.net>
Wed, 30 Sep 2020 09:58:21 +0000 (11:58 +0200)
committerMichael Wallner <mike@php.net>
Wed, 30 Sep 2020 09:58:21 +0000 (11:58 +0200)
test/lib/random.cpp

index 3681fcc8727a3aaeec768f5abe27eee25c6ce883..359c1f3487ad5a2e97c78b3ed8d685d1b7a7e7ea 100644 (file)
@@ -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()) {