diff options
author | Magnus Reftel <reftel@spotify.com> | 2014-10-14 17:18:17 +0200 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2014-11-03 11:03:34 +0200 |
commit | c5e4a5a95e6de549fdf131c77c0f8d25b6ee7f30 (patch) | |
tree | 8e60a241f11aa81e134dce384c5aa40715dcd2da /linux-user/elfload.c | |
parent | 0a2923f8488498000eec54871456aa64a4391da4 (diff) | |
download | qemu-c5e4a5a95e6de549fdf131c77c0f8d25b6ee7f30.zip qemu-c5e4a5a95e6de549fdf131c77c0f8d25b6ee7f30.tar.gz qemu-c5e4a5a95e6de549fdf131c77c0f8d25b6ee7f30.tar.bz2 |
linux-user: Let user specify random seed
This patch introduces the -seed command line option and the
QEMU_RAND_SEED environment variable for setting the random seed, which
is used for the AT_RANDOM ELF aux entry.
Signed-off-by: Magnus Reftel <reftel@spotify.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/elfload.c')
-rw-r--r-- | linux-user/elfload.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 1c04fcf..f2e2197 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1539,7 +1539,6 @@ static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc, * Generate 16 random bytes for userspace PRNG seeding (not * cryptically secure but it's not the aim of QEMU). */ - srand((unsigned int) time(NULL)); for (i = 0; i < 16; i++) { k_rand_bytes[i] = rand(); } |