summaryrefslogtreecommitdiffstats
path: root/vendor/openssl-sys/src/handwritten/rand.rs
blob: 3bf9da5921f4bc3af01cbc7a07d2a10794b33369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use libc::*;

extern "C" {
    pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int;

    #[cfg(ossl111)]
    pub fn RAND_keep_random_devices_open(keep: c_int);

    pub fn RAND_status() -> c_int;

    pub fn RAND_add(buf: *const c_void, num: c_int, randomness: c_double);
}