Files
swift/test/unit/common
Alistair Coles 7fa9d6e5b4 Unset random seed after rebalancing ring
Unit tests use the random module in places to randomise
test inputs, but once the tests in test_builder.py or
test_ring_builder_analyzer.py have been run the random
seed is left in a repeatable state because calls are made
to RingBuilder.balance with a seed value. Consequently,
subsequent calls to random in other tests get repeatable
results from one test run to another.

This patch resets the state of the random module before
returning from RingBuilder.rebalance.

Closes-Bug: #1639755
Change-Id: I4b74030afc654e60452e65b3e0f1b45a189c16e3
2017-08-08 22:34:04 +00:00
..
2010-07-12 17:03:45 -05:00
2017-04-27 14:19:00 -07:00