Fixes compilation for Swift 2.3 compiler.

This commit is contained in:
Krunoslav Zaher 2016-07-04 01:07:19 +02:00
parent 17f8aac437
commit 2d50bc135c
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ extension VirtualSchedulerTest {
var times = [Int]()
var ticks = [Int]()
for _ in 0 ..< 20000 {
let random = Int(rand() % 10000)
let random = Int(arc4random() % 10000)
times.append(random)
scheduler.scheduleRelative((), dueTime: RxTimeInterval(10 * random)) { [weak scheduler] _ in
ticks.append(scheduler!.clock)