Received: from eggs.gnu.org ([2001:4830:134:3::10]:34055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe3sx-0008Vu-Ij for qemu-devel@nongnu.org; Tue, 14 Oct 2014 11:19:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe3ss-0002nn-4Y for qemu-devel@nongnu.org; Tue, 14 Oct 2014 11:19:39 -0400 Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:57503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe3sr-0002nY-R6 for qemu-devel@nongnu.org; Tue, 14 Oct 2014 11:19:34 -0400 Received: by mail-lb0-f169.google.com with SMTP id 10so8388438lbg.14 for ; Tue, 14 Oct 2014 08:19:30 -0700 (PDT) From: Magnus Reftel Date: Tue, 14 Oct 2014 17:18:16 +0200 Message-Id: <1413299897-24083-1-git-send-email-reftel@spotify.com> Subject: [Qemu-devel] [PATCH v5] linux-user: Let user specify random seed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, riku.voipio@iki.fi 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 to the commit message.