Module random
Expand description
Random state generation.
Structs§
- Generates random
SystemStates consistent with a set ofMemoryAccesses.
Enums§
- Error that can occur while generating a randomized CPU input state.
- Error that can be returned by
StateGen::remap.
Functions§
- Generates a randomized
SystemState, with only one memory mapping for the provided instructioninstr. - Returns a vector of
lenrandom bytes. - Generates randomized bytes and puts them in an
ArrayVec. - Generates randomized bytes and puts them in
buf. - Returns a randomized byte for position
indexinto a byte vector. This avoids the allocation of a vector for the result. - Returns a randomized
u64value. - Updates the memory mappings to the correct locations according to
accesseswithout checking for overlapping mappings or mappings that cross page boundaries.