Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macOS 10.10+ / iOS 8.0+ PRNG CCRandomGenerateBytes() #1135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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