]>
git.saurik.com Git - apple/security.git/blob - sec/Security/Regressions/secitem/si-50-secrandom.c
5 * Created by Michael Brouwer on 5/8/07
6 * Copyright (c) 2007-2008,2010 Apple Inc. All Rights Reserved.
10 #include <Security/SecRandom.h>
11 #include <CoreFoundation/CoreFoundation.h>
15 #include "Security_regressions.h"
17 /* Test basic add delete update copy matching stuff. */
18 static void tests(void)
20 UInt8 bytes
[4096] = {};
22 UInt8
*p
= bytes
+ 23;
23 ok_status(SecRandomCopyBytes(kSecRandomDefault
, size
, p
), "generate some random bytes");
26 int si_50_secrandom(int argc
, char *const *argv
)