| 228 | |
| 229 | template <bool V4> |
| 230 | static IPAddress randomAddress() { |
| 231 | constexpr int width = V4 ? 4 : 16; |
| 232 | uint32_t rnd[width / 4]; |
| 233 | for (int i = 0; i < width / 4; ++i) { |
| 234 | rnd[i] = deterministicRandom()->randomUInt32(); |
| 235 | } |
| 236 | return intArrayToAddress<V4>(rnd); |
| 237 | } |
| 238 | |
| 239 | template <bool V4> |
| 240 | IPAddress randomAddress(bool inSubnet) { |
no test coverage detected