2019-04-16 12:06:08 -05:00
|
|
|
// ignore-macos: Uses Linux-only APIs
|
|
|
|
// ignore-windows: Uses Linux-only APIs
|
2019-04-08 22:16:13 -05:00
|
|
|
|
2019-04-07 17:17:43 -05:00
|
|
|
#![feature(rustc_private)]
|
|
|
|
extern crate libc;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut buf = [0u8; 5];
|
|
|
|
unsafe {
|
2019-04-08 21:22:41 -05:00
|
|
|
libc::syscall(libc::SYS_getrandom, buf.as_mut_ptr() as *mut libc::c_void, 5 as libc::size_t, 0 as libc::c_uint);
|
2019-04-21 06:18:05 -05:00
|
|
|
//~^ ERROR miri does not support gathering system entropy in deterministic mode!
|
2019-04-07 17:17:43 -05:00
|
|
|
}
|
|
|
|
}
|