summaryrefslogtreecommitdiffstats
path: root/vendor/security-framework-sys/src/random.rs
blob: 6ec9c9858fce3e4831519a974cfa6f3f32657079 (plain)
1
2
3
4
5
6
7
8
9
10
use std::os::raw::{c_int, c_void};

pub enum __SecRandom {}
pub type SecRandomRef = *const __SecRandom;

extern "C" {
    pub static kSecRandomDefault: SecRandomRef;

    pub fn SecRandomCopyBytes(rnd: SecRandomRef, count: usize, bytes: *mut c_void) -> c_int;
}