Restore the random generator state in Connection.connect_random -- providing a seed argument no longer affects the random number generation outside of this function. Thanks to Rinaldo for reporting this.