avoid collisions with ephemeral ports on foundry

pull/16620/head
Jan Tattermusch 6 years ago
parent 20345b21bb
commit d0bbb86a2b
  1. 4
      test/core/util/port_isolated_runtime_environment.cc

@ -30,8 +30,8 @@
#include "test/core/util/port.h" #include "test/core/util/port.h"
#define MIN_PORT 49152 #define MIN_PORT 1025
#define MAX_PORT 65535 #define MAX_PORT 32766
static int get_random_port_offset() { static int get_random_port_offset() {
srand(gpr_now(GPR_CLOCK_REALTIME).tv_nsec); srand(gpr_now(GPR_CLOCK_REALTIME).tv_nsec);

Loading…
Cancel
Save