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