From: "Alex Bennée" <alex.bennee@linaro.org>
To: Jun Sun <jsun@junsun.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH risu] use time() as random seed and introduce --randseed option
Date: Wed, 03 May 2023 18:03:52 +0100 [thread overview]
Message-ID: <87ttwts5ur.fsf@linaro.org> (raw)
In-Reply-To: <CAP5Nno6wrz4qEMK70KFwxoZWeo89+SAyXDXFW8A30mJ-WeFi4A@mail.gmail.com>
Jun Sun <jsun@junsun.net> writes:
> By default, risu currently does not generate random instruction sequences because it uses 0 as the random seed.
> This patch uses time() as random seed and also introduces --randomseed option for deterministic sequence
> generation.
I can see the benefit for being able to change the seed but I think
using time() by default means any given sequence won't be reproducible.
This is useful behaviour if you want to regenerate the same test
sequence on another machine without copying stuff about.
>
> [4. text/x-diff; 0008-add-randseed-option-and-use-time-as-default-seed.patch]...
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
next prev parent reply other threads:[~2023-05-03 17:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-03 16:23 [PATCH risu] use time() as random seed and introduce --randseed option Jun Sun
2023-05-03 17:03 ` Alex Bennée [this message]
2023-05-05 0:22 ` Jun Sun
2023-05-09 12:53 ` Peter Maydell
2023-05-18 13:09 ` Alex Bennée
2023-06-06 16:36 ` Jun Sun
2023-06-06 16:58 ` Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttwts5ur.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=jsun@junsun.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).