Skip to main content

getrandom_unrecorded

Function getrandom_unrecorded 

Source
pub fn getrandom_unrecorded(
    prng: &mut Pcg64Mcg,
    memory: impl MemoryAccess,
    call: Getrandom,
) -> Result<(i64, Option<RandomFill>), Error>
Expand description

getrandom for a loader that runs before the thread’s post-exec callback: it emits no record and returns the fill, if any, whose record getrandom would have emitted. The loader hands the fills over with encode_initial_state, and post-exec emits their records after the AT_RANDOM record, where every other backend’s handler emits them.