1/*
2 *  si-50-secrandom.c
3 *  Security
4 *
5 *  Created by Michael Brouwer on 5/8/07
6 *  Copyright (c) 2007-2008,2010 Apple Inc. All Rights Reserved.
7 *
8 */
9
10#include <Security/SecRandom.h>
11#include <CoreFoundation/CoreFoundation.h>
12#include <stdlib.h>
13#include <unistd.h>
14
15#include "Security_regressions.h"
16
17/* Test basic add delete update copy matching stuff. */
18static void tests(void)
19{
20	UInt8 bytes[4096] = {};
21	CFIndex size = 42;
22	UInt8 *p = bytes + 23;
23	ok_status(SecRandomCopyBytes(kSecRandomDefault, size, p), "generate some random bytes");
24}
25
26int si_50_secrandom(int argc, char *const *argv)
27{
28	plan_tests(1);
29
30
31	tests();
32
33	return 0;
34}
35