aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / getrandom / src / linux_android.rs
| 1 | //! Implementation for Linux / Android without `/dev/urandom` fallback |
| 2 | use crate::{util_libc, Error}; |
| 3 | use core::mem::MaybeUninit; |
| 4 | |
| 5 | pub fn getrandom_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> { |
| 6 | util_libc::sys_fill_exact(dest, util_libc::getrandom_syscall) |
| 7 | } |