Fix improper_ctypes
fallout
This commit is contained in:
parent
0fb8ab04bc
commit
847fba06c3
1 changed files with 4 additions and 3 deletions
|
@ -185,7 +185,7 @@ mod imp {
|
||||||
use io;
|
use io;
|
||||||
use mem;
|
use mem;
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
use libc::{c_int, size_t};
|
use libc::{c_int, c_void, size_t};
|
||||||
|
|
||||||
/// A random number generator that retrieves randomness straight from
|
/// A random number generator that retrieves randomness straight from
|
||||||
/// the operating system. Platform sources:
|
/// the operating system. Platform sources:
|
||||||
|
@ -203,8 +203,9 @@ mod imp {
|
||||||
_dummy: (),
|
_dummy: (),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
// Fake definition; this is actually a struct, but we don't use the
|
||||||
struct SecRandom;
|
// contents here.
|
||||||
|
type SecRandom = c_void;
|
||||||
|
|
||||||
#[allow(non_upper_case_globals)]
|
#[allow(non_upper_case_globals)]
|
||||||
const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
|
const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue