Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
src
/
tools
/
miri
/
tests
/
pass-dep
/
libc
/
ccrandomgeneratebytes_apple.rs
blob: afcc02bc8397158834cdea999d3b2cc601a14561 [
file
] [
log
] [
blame
]
//@only-target: apple # This directly tests apple-only functions
fn
main
()
{
let
mut
bytes
=
[
0u8
;
24
];
let
ret
=
unsafe
{
libc
::
CCRandomGenerateBytes
(
bytes
.
as_mut_ptr
().
cast
(),
bytes
.
len
())
};
assert_eq
!(
ret
,
libc
::
kCCSuccess
);
}