| 133 | // Select a random port that is not the same as the one given. |
| 134 | template <typename R> |
| 135 | static uint16_t selectOtherPort(const R& resources, uint16_t port) |
| 136 | { |
| 137 | uint16_t selected; |
| 138 | |
| 139 | do { |
| 140 | selected = selectRandomPort(resources); |
| 141 | } while (selected == port); |
| 142 | |
| 143 | return selected; |
| 144 | } |
| 145 | |
| 146 | |
| 147 | template <typename T> |
no test coverage detected