[m-dev.] trivial diff: use rand instead of random with MSVC

Ralph Becket rbeck at microsoft.com
Fri Dec 8 21:38:49 AEDT 2000


>From Peter Ross on 07/12/2000 12:53:50
> Hi,
> 
> 
> ===================================================================
> 
> 
> Estimated hours taken: 0.1
> 
> 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.

--
Ralph Becket      |      MSR Cambridge      |      rbeck at microsoft.com 

--------------------------------------------------------------------------
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