Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ios: Fix Error checking for SecRandomCopyBytes (#244)
Apple's documentation for SecRandomCopyBytes says that errSecSuccess is returned on success, and all other values indicate failure. https://developer.apple.com/documentation/security/1399291-secrandomcopybytes The SecBase.h header also clearly establishes that `errSecSuccess = 0`: https://opensource.apple.com/source/Security/Security-55471/sec/Security/SecBase.h.auto.html Fixes #243 Signed-off-by: Joe Richey <joerichey@google.com>
- Loading branch information