wifiblaster: fix flaky test due to random numbers.

WifiblasterController uses random.expovariate to determine the next
measurement time. Exponential distributions can return arbitrarily large
values with vanishingly small but positive probability. This results in
flakiness when wifiblaster_controller_test checks that a measurement
will run within a "long enough" time, since no time is guaranteed to be
long enough.

Also fixed a bug that was introduced in
8c0cae0c66f701f9d83e9bab39bf3baa6417bf99 but went undetected due to a
bug in wifiblaster_controller_test. Measurements are supposed to start
one interval after they are enabled, but the test allowed them to start
immediately.

Change-Id: Iae4eda91d4aee0ade7af2100ff5ed180b841daf4
2 files changed