This routine is intended to produce high-quality random numbers to the
guest. Normally, such numbers are crypto quality from the host, but a
command-line option can force the use of a fully deterministic sequence
for use while debugging.
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Daniel P. Berrangé <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
include/qemu/guest-random.h | 68 +++++++++++++++++++++++++++
util/guest-random.c | 93 +++++++++++++++++++++++++++++++++++++
util/Makefile.objs | 1 +
3 files changed, 162 insertions(+)
create mode 100644 include/qemu/guest-random.h
create mode 100644 util/guest-random.c