glen herrmannsfeldt <
g...@ugcs.caltech.edu> wrote:
> Richard Maine <nos...@see.signature> wrote:
[discussion about random_seed]
Well, I suppose I shouldn't spend too much effort in defending the
standard's treatment of random number generation. Even the person who
allegedly (it was before my time on the committee, so I wasn't there)
wrote the words once said that he had intended to specify a few more
things about seeding, but failed to actually write that part and forgot
that he hadn't. Thus, those parts ended up getting left processor
dependent in ways that have subsequently caused annoyances.
I recall this because the author tried to use this explanation as
justification for adding the specification in response to a defect
report. However, just because he wrote the words, didn't give him
"ownership" of them. The specification that he claimed had been his
intention in the first place was not presented to, discusssed, or voted
on by the committee during the development of f90, so his personal
intent could not be taken as that of the committee as a whole.
In the interim, multiple vendors had implemented random number
generators using different approaches, as allowed by the words actually
in the standard. Redoing the standard's specification at that point
would have been an incompatible change, invalidating existing compilers
and code. I'm sure there are still people who think it should have been
changed anyway, but that's not what passed. It was left processor
dependent and remains so today.
(No I don't recall exactly what variant he claimed to have intended. It
was quite a while ago. But I do very much recall the attempt to claim
that his previously unwritten personal intent should be taken as the
"intent of the committee". It had to do with the behavior when the
program never called random_seed or when it was called with no
arguments.)