X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/866f8763175ff60e4fa455b92b5eb660a12fe6c7..7e6b461318c8a779d91381531435a68ee4e8b6ed:/OSX/libsecurity_keychain/lib/SecRandom.c 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); }