Re: Question for Windows/BeOS Developers.


Subject: Re: Question for Windows/BeOS Developers.
From: Thomas Briggs (tom@sane.com)
Date: Wed Aug 23 2000 - 07:40:19 CDT


   time() works on Windows just like it does on every Unix platform I've
ever used, so it shouldn't pose any problems.
   Now if only I could say that about so many other things... :)

   -Tom

----- Original Message -----
From: "Martin Sevior" <msevior@mccubbin.ph.unimelb.edu.au>
To: <abiword-dev@abisource.com>
Sent: Wednesday, August 23, 2000 3:31 AM
Subject: Question for Windows/BeOS Developers.

>
> Hi Windows and BeOS types,
> I need to initialize the random number generator using srand so
> that we get different string of random numbers every time we invoke abi. I
> want to do this to make sure the List identification number is always
> unique.
>
> In Unix I can do
>
> srand( (UT_uint32) time())
>
> Which works great. time() returns the number seconds since 1970. Is there
> a similar function in windows? I just need a function that is guarenteed
> to give a different result on every call. Since time always increases this
> will always work :-)
>
> I knew I'd be able to work in a Physics use somewhere :-)
>
> Cheers
>
> Martin
>
>
>
>



This archive was generated by hypermail 2b25 : Wed Aug 23 2000 - 07:40:25 CDT