Skip to content

Conversation

@wyattoday
Copy link
Contributor

Use the built-in cryptographic PRNG on macOS 10.10+ and iOS 8.0+.

Comment on lines +38 to +42
#if defined(__MACH__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000
#define USE_CCRANDOMGENERATEBYTES
#elif defined(__AVAILABILITY_INTERNAL__IPHONE_8_0_DEP__IPHONE_8_0)
#define USE_CCRANDOMGENERATEBYTES
#endif
Copy link

@AraHaan AraHaan Jul 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#if defined(__MACH__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000
#define USE_CCRANDOMGENERATEBYTES
#elif defined(__AVAILABILITY_INTERNAL__IPHONE_8_0_DEP__IPHONE_8_0)
#define USE_CCRANDOMGENERATEBYTES
#endif
#if (defined(__MACH__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000) || defined(__AVAILABILITY_INTERNAL__IPHONE_8_0_DEP__IPHONE_8_0)
#define USE_CCRANDOMGENERATEBYTES
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants