I'm getting this error:
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
Most of the time (not all) when I'm using arc4random()
in Xcode 6 with Swift. I didn't ever get this error in Xcode 5 in Objective C. Curiously, if I use arc4random_uniform()
, I don't run into this problem.
How do I use arc4random()
without getting this error?