X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..07691282a056c4efea71e1e505527601e8cc166b:/OSX/libsecurity_keychain/lib/SecRandom.c diff --git a/OSX/libsecurity_keychain/lib/SecRandom.c b/OSX/libsecurity_keychain/lib/SecRandom.c index dcdb1aef..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, uint8_t *bytes) { - if (rnd != kSecRandomDefault) - return errSecParam; +int SecRandomCopyBytes(__unused SecRandomRef rnd, size_t count, void *bytes) { return CCRandomCopyBytes(kCCRandomDefault, bytes, count); }