سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top