Hopefully fix test_rand breakage