Commit 21e03e8
authored
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 <[email protected]>1 parent e6e7dd6 commit 21e03e8
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments