qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v4] linux-user: Let user specify random seed


From: Magnus Reftel
Subject: [Qemu-devel] [PATCH v4] linux-user: Let user specify random seed
Date: Tue, 14 Oct 2014 11:50:21 +0200

linux-user uses the rand function for generating the value of the AT_RANDOM elf
aux vector entry, and explicitly seeds the random number generator with the
current time. This makes it impossible to reproduce runs that use the AT_RANDOM
bytes.

This patch adds a command line option and a matching environment variable for
setting the random seed, so that the AT_RANDOM values can be predictable when
the user chooses. The default is still to seed the random number generator
with the current time.

This is an updated version of the patch, addressing a review comment from
Eric Blake on version 3.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]