delorie.com/archives/browse.cgi | search |
Date: | Wed, 5 Jul 2000 19:09:08 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
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: | <Pine.SUN.3.91.1000705190800.14785A-100000@is> |
MIME-Version: | 1.0 |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |