Message ID | 20190514191653.31488-16-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp3013235ili; Tue, 14 May 2019 12:32:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxID0Nz8FsVjoZqoyxnFyI8pf6ve4GAOJoh8FbAI1m5hg39yvEjTo9XQ8COhxPTbcLwAwth X-Received: by 2002:a50:89b0:: with SMTP id g45mr39090169edg.200.1557862347577; Tue, 14 May 2019 12:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557862347; cv=none; d=google.com; s=arc-20160816; b=CGDpSxhgEv+ud6s0VzS6+cdPu5VaoW/Ae4MRvgdI363tR0Ulgez4+4MI2l+VZle0+b RRA3nOYgoyEQjHf0Gvwhvzy9T8iv/kcke0ZjvmE2Rf1FdZqxivD9NNnaOw5oJG77U6NQ 3lQbdrKO57CgaFRrXIjEVWYOZmmYRhY00M61sYc7t28y8l8UMRJPojR+TYe1XerXYnD+ WKD2rBy6o1JZ/qBvDc1iz1HGV1KaIvuTcnYjkOj1immak+tqjxXgW97NXM7itNuoZLSG 8q5kQtzO/b/C/4ttzMFLnVZNa12WvvQXrF78gMmxlA5I1LXRYNZLgI/lVFPy0SglLAH6 cGZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=snXBlb0VD87nnHn7Q6KPOfq6Oyu7S4mMYTFxn8359jU=; b=YIT+ZZL25/+mklVmvPT4k5xUDwDgNwU5os0jJck/doURT/Z/pACFGvtdQBtrOvKwvz vgANQlzU/KHkPAYfrdPe8XNhC7vLfwUfGgSYK/68ujV6LCvKvMuBo0JpF+uoIuz3607v iCKFTeyBoiud23dwtmIXE4C3Ve1ZY6OHBGb/EFG6U+RD6uKHtaf2/Z7SlsxgXZ9JyhoG Q+QSvJX3ZDh4ROtnXAbkINc/G6Cj4orx24L4uHpjy1sm0XZf8r9ioaM93bIcPBLEhmeb G9Jv4L1i0HCYLD4EB00UV9Mqyagc3Wmw0pNQ0zdwMNE00hZG2Wret5uS1RXPzMN6v9/a 6tBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cS6X8k+9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u16si1434875ejx.27.2019.05.14.12.32.27 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 14 May 2019 12:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cS6X8k+9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:53136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1hQdA2-0007Vg-GJ for patch@linaro.org; Tue, 14 May 2019 15:32:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQcvO-0002bJ-3q for qemu-devel@nongnu.org; Tue, 14 May 2019 15:17:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQcvN-0006yT-4p for qemu-devel@nongnu.org; Tue, 14 May 2019 15:17:18 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:44123) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hQcvM-0006xT-Sv for qemu-devel@nongnu.org; Tue, 14 May 2019 15:17:17 -0400 Received: by mail-pg1-x52b.google.com with SMTP id z16so34193pgv.11 for <qemu-devel@nongnu.org>; Tue, 14 May 2019 12:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=snXBlb0VD87nnHn7Q6KPOfq6Oyu7S4mMYTFxn8359jU=; b=cS6X8k+9x3u+9JC1Vv7LBt4ObMwsyt+ocIB02CPrAa8lIfW1gFx31NoNe073nSOMkk lDKTF0GO9O40go6+yOrPeq6IF4owyojh8z30sH3PL7OkbR6mt4A1jJjbFOZ3o/0AfGZu fhSo2B/6SzEHTpzp8vGlgJyxhwYBq0uSDVhAhzj8xQekDxnoABXILS7NPXE2Chs0vLLh j4ZnmGvM7cvxZG3rAd0/yg9sjB4bn5Ao+NSODB5bCf/6VVvuA4pxytazfbZJg+k8CLua VXFMN16gHDSLWcISHyFY/Qvjlfq+vKS8AN0EwJ13KteoQlsVZM8bc2u9dxY36hoc0uVA 4gCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=snXBlb0VD87nnHn7Q6KPOfq6Oyu7S4mMYTFxn8359jU=; b=U/mfU7pqCgeWpsqWybxnyMyIyDUXLn5SxLR+KGy/hzHzdej44HSGHCnpIoH61akRBX PWseKd+On9AbuwFCjRYnNFf4n3BOmgjIccs4DdEKUswQ5JPPyTGk0ItCnlX74nV8cyT2 MftUrlVR03RbRLXuuLoz7z/RcvBc7mGhBWggRFrFTIoLo4QBvTjzk9BTsqhd6CNIjs7N FYSXR31BJnmCayjuc0khDqh0bTE3Tmcao7QGemT6riS15xXR4eJGhUrwYARG03+lE3WV evZfVR1vgxWR6DN/G+VzxK0q/j7MGBaD//e52zWAHB5XufpfvBTkhyied26axMurPz8s 80KQ== X-Gm-Message-State: APjAAAVHb5iSCejfIl2PZ/t40OEHz4teqEZWR5b8tpIojL+L6Rat+Bxy n9jfS1gN+w3SJGJoDBWTAOtVugXNERg= X-Received: by 2002:a63:3ece:: with SMTP id l197mr1249541pga.268.1557861435565; Tue, 14 May 2019 12:17:15 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id o6sm18682982pfa.88.2019.05.14.12.17.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 May 2019 12:17:14 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Tue, 14 May 2019 12:16:44 -0700 Message-Id: <20190514191653.31488-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190514191653.31488-1-richard.henderson@linaro.org> References: <20190514191653.31488-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52b Subject: [Qemu-devel] [PATCH v7 15/24] linux-user: Remove srand call X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: lvivier@redhat.com, berrange@redhat.com, armbru@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Add qemu_getrandom and ARMv8.5-RNG etc
|
expand
|
diff --git a/linux-user/main.c b/linux-user/main.c index 4c72f07555..5792c40ace 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -623,8 +623,6 @@ int main(int argc, char **argv, char **envp) cpu_model = NULL; - srand(time(NULL)); - qemu_add_opts(&qemu_trace_opts); optind = parse_args(argc, argv); @@ -692,15 +690,6 @@ int main(int argc, char **argv, char **envp) { Error *err = NULL; if (seed_optarg != NULL) { - unsigned long long seed; - - /* This will go away with the last user of rand(). */ - if (parse_uint_full(seed_optarg, &seed, 0) != 0) { - fprintf(stderr, "Invalid seed number: %s\n", seed_optarg); - exit(EXIT_FAILURE); - } - srand(seed); - qemu_guest_random_seed_main(seed_optarg, &err); } else { qcrypto_random_init(&err);