Mail Archives: djgpp-workers/1998/11/17/10:45:02
On Tue, 17 Nov 1998, DJ Delorie wrote:
>
> If ANSI doesn't specify the actual sequence of numbers, can we just
> keep returning zero from rand() until srand() is called?
No, at least not unless we're willing to return a constant zero from
rand() again, whenever the user called srand(1) himself.
I strongly suggest to return to the current behaviour. It may confuse
newbies, but there's no way around that allowed by the standard.
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -