Date: Wed, 5 Jul 2000 19:09:08 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Which library is time in? In-Reply-To: <39633f53.24462774@news.freeserve.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 5 Jul 2000, Steamer wrote: > > srand(time(NULL)); > > If the code is intended to be portable then it's probably better to do > > srand((unsigned)time(NULL)); > > to prevent warnings on some compilers. What warning are those? If you include both time.h and stdlib.h, you should have no warnings, I think.