[m-dev.] trivial diff: use rand instead of random with MSVC
Fergus Henderson
fjh at cs.mu.OZ.AU
Sat Dec 9 10:21:58 AEDT 2000
On 08-Dec-2000, Ralph Becket <rbeck at microsoft.com> wrote:
> > boehm_gc/dbg_mlc.c:
> > If we are using MSVC, call rand() instead of random(), as random()
> > doesn't exist.
>
> That's a shame: the standard implementation of rand() generates sequences
> where the bottom four bits (IIRC) are cyclic.
>
> Not a problem for now, though.
Yes, this is just in debugging code that is turned off by default and
for which the randomness of the low bits doesn't really matter much.
Anyway this is Hans Boehm's problem, not ours ;-)
I've reported the problem to him.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list