Sha256: 317cdaf243623329ee345131054e86a06a0863a9e90c5dba73e1ac3475ba6305
Contents?: true
Size: 494 Bytes
Versions: 19
Compression:
Stored size: 494 Bytes
Contents
//! linux_raw syscalls supporting `rustix::rand`. //! //! # Safety //! //! See the `rustix::backend` module documentation for details. #![allow(unsafe_code, clippy::undocumented_unsafe_blocks)] use crate::backend::conv::{pass_usize, ret_usize}; use crate::io; use crate::rand::GetRandomFlags; #[inline] pub(crate) unsafe fn getrandom( buf: *mut u8, cap: usize, flags: GetRandomFlags, ) -> io::Result<usize> { ret_usize(syscall!(__NR_getrandom, buf, pass_usize(cap), flags)) }
Version data entries
19 entries across 19 versions & 1 rubygems