qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v5] linux-user: Let user specify random seed
@ 2014-10-14 15:18 Magnus Reftel
  2014-10-14 15:18 ` [Qemu-devel] [PATCH] " Magnus Reftel
  0 siblings, 1 reply; 5+ messages in thread
From: Magnus Reftel @ 2014-10-14 15:18 UTC (permalink / raw)
  To: qemu-devel, riku.voipio

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.

The difference from version 4 of the patch is only the addition of the line
  Reviewed-by: Eric Blake <eblake@redhat.com>
to the commit message.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH v5] linux-user: Let user specify random seed
@ 2014-10-22 13:17 Magnus Reftel
  2014-10-23 10:03 ` Riku Voipio
  0 siblings, 1 reply; 5+ messages in thread
From: Magnus Reftel @ 2014-10-22 13:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: riku.voipio

On Tue, Oct 14, 2014 at 5:18 PM, Magnus Reftel <reftel@spotify.com> wrote:
> 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.
>
> The difference from version 4 of the patch is only the addition of the line
>   Reviewed-by: Eric Blake <eblake@redhat.com>
> to the commit message.

Ping.
http://patchwork.ozlabs.org/patch/399483/

BR
Magnus Reftel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-28 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-14 15:18 [Qemu-devel] [PATCH v5] linux-user: Let user specify random seed Magnus Reftel
2014-10-14 15:18 ` [Qemu-devel] [PATCH] " Magnus Reftel
  -- strict thread matches above, loose matches on Subject: below --
2014-10-22 13:17 [Qemu-devel] [PATCH v5] " Magnus Reftel
2014-10-23 10:03 ` Riku Voipio
2014-10-28 14:40   ` Magnus Reftel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).