Commit 29c3384
ios: Fix Error checking for SecRandomCopyBytes (rust-random#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 rust-random#243
Signed-off-by: Joe Richey <joerichey@google.com>1 parent e4a55b4 commit 29c3384
1 file changed
Lines changed: 2 additions & 1 deletion
| 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