I need to generate a random number.
It appears the arc4random
function no longer exists as well as the arc4random_uniform
function.
The options I have are arc4random_stir()
, arc4random_buf(UnsafeMutablePointer<Void>, Int)
, and arc4random_addrandom(UnsafeMutablePointer<UInt8>, Int32)
.
I can't find any docs on the functions and no comments in the header files give hints.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…