Module random
Expand description
Random state generation.
Structs§
- Generates random
SystemState
s 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
len
random bytes. - Generates randomized bytes and puts them in an
ArrayVec
. - Generates randomized bytes and puts them in
buf
. - Returns a randomized byte for position
index
into a byte vector. This avoids the allocation of a vector for the result. - Returns a randomized
u64
value. - Updates the memory mappings to the correct locations according to
accesses
without checking for overlapping mappings or mappings that cross page boundaries.