testutil: SeededRand + better port selection

Was getting failures on travis, where the tcp ports
were from an unseeded rand >.<