X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/866f8763175ff60e4fa455b92b5eb660a12fe6c7..07691282a056c4efea71e1e505527601e8cc166b:/OSX/libsecurity_keychain/lib/SecRandom.c?ds=sidebyside diff --git a/OSX/libsecurity_keychain/lib/SecRandom.c b/OSX/libsecurity_keychain/lib/SecRandom.c index 829e0364..703ad517 100644 --- a/OSX/libsecurity_keychain/lib/SecRandom.c +++ b/OSX/libsecurity_keychain/lib/SecRandom.c @@ -39,9 +39,7 @@ const SecRandomRef kSecRandomDefault = NULL; -int SecRandomCopyBytes(SecRandomRef rnd, size_t count, void *bytes) { - if (rnd != kSecRandomDefault) - return errSecParam; +int SecRandomCopyBytes(__unused SecRandomRef rnd, size_t count, void *bytes) { return CCRandomCopyBytes(kCCRandomDefault, bytes, count); }