Fixes compilation for Swift 2.3 compiler.
This commit is contained in:
parent
17f8aac437
commit
2d50bc135c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue