X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..7e6b461318c8a779d91381531435a68ee4e8b6ed:/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); }