https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
--- Comment #9 from Steve Kargl ---
On Sat, Dec 12, 2020 at 11:55:41PM +, damian at sourceryinstitute dot org
wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
>
> Damian Rouson changed:
>
>What|Removed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
Damian Rouson changed:
What|Removed |Added
Resolution|--- |FIXED
Status|WAITING
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
--- Comment #7 from Damian Rouson ---
I agree that it would have been better for image_distinct to be optional. I
co-hosted the 2018 WG5 meeting at which there were lengthy discussions around
random number generation. I don't recall whether
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
--- Comment #6 from kargl at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #4)
> Invalid expectation?
Not sure. This long response was composed before I saw Damian's reply.
At the risk of starting an existential argument,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
--- Comment #5 from Damian Rouson ---
Steve, thanks for all the time you put into implementing random_init and
responding to this PR. My confusion stemmed from the first sentence that I
quoted from the standard. It states that the provided
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
Dominique d'Humieres changed:
What|Removed |Added
Last reconfirmed||2020-12-12
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
--- Comment #3 from kargl at gcc dot gnu.org ---
Third thought. Here are the programs you meant to write (without error
checking such as how_to_use_random_init must be run before
how_to_seed_with_random_seed_like_random_init).
program
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
--- Comment #2 from kargl at gcc dot gnu.org ---
On 2nd thought.
Of course, the results are different.
In your first example, you have
call random_init(repeatable=.true., image_distinct=.true.)
which gets you processor-dependent seeds. In
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253
kargl at gcc dot gnu.org changed:
What|Removed |Added
CC||kargl at gcc dot gnu.org
---