Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS requirements for arc4random_uniform()

How do I find out the minimum OS requirements for using arc4random_uniform()? Is it defined in BSD? If so, from what version? Does it run on any Mac OS X version? How about iOS versions? Is there any official place I can find these things out?

like image 513
rid Avatar asked Jun 03 '12 20:06

rid


1 Answers

If you look at stdlib.h where it is defined, it says:

u_int32_t arc4random_uniform(u_int32_t /*upper_bound*/) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);

So it is available from Lion on for desktops and iOS 4.3 on the iPhone.

like image 149
pasawaya Avatar answered Oct 10 '22 23:10

pasawaya