When the -seed option is given, call qemu_guest_random_seed_main,
putting the subsystem into deterministic mode. Pass derived seeds
to each cpu created during clone; which is a no-op unless the
subsystem is in deterministic mode.
Cc: Laurent Vivier <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
v5: Retain srand() until last user goes away.
---
linux-user/main.c | 30 +++++++++++++++++++-----------
linux-user/syscall.c | 3 +++
2 files changed, 22 insertions(+), 11 deletions(-)