numpy/npyffi/random.rs
1use std::ffi::c_void;
2
3#[repr(C)]
4#[derive(Debug)]
5pub struct bitgen_t {
6 pub state: *mut c_void,
7 pub next_uint64: unsafe extern "C" fn(*mut c_void) -> super::npy_uint64, //nogil
8 pub next_uint32: unsafe extern "C" fn(*mut c_void) -> super::npy_uint32, //nogil
9 pub next_double: unsafe extern "C" fn(*mut c_void) -> libc::c_double, //nogil
10 pub next_raw: unsafe extern "C" fn(*mut c_void) -> super::npy_uint64, //nogil
11}