in reply to Re: rand and srand across builds and platforms?
in thread rand and srand across builds and platforms?

Interesting. Maybe it comes down to the rand() function provided by the C-libraries? Would that be consistant across different GCC installs?


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^3: rand and srand across builds and platforms?
by JediWizard (Deacon) on Mar 08, 2005 at 15:49 UTC

    That sounds likely, though I can neither confirm nor deny, given that I have little to no understanding of the underlying algrothim used to generate random numbers.


    A truely compassionate attitude towards other does not change, even if they behave negatively or hurt you

    —His Holiness, The Dalai Lama

Re^3: rand and srand across builds and platforms?
by Fletch (Bishop) on Mar 08, 2005 at 15:51 UTC

    Consistent across 5.8.0 on RH9 (glibc-2.3.2-27.9.7) and 5.6.1 on RHEL 2.1 WS (glibc-2.2.4-31.7) (i.e. I get the same sequence as above).