From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Random numbers... Date: Sat, 16 Aug 1997 21:07:17 -0700 Organization: Alcyone Systems Lines: 18 Message-ID: <33F678F5.3C53358C@alcyone.com> References: <01bcaa71$4c08c200$0d5e4ec2 AT xyy> <33F638CE DOT 1B76 AT cs DOT com> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk John M. Aldrich wrote: > srand( (int) time( NULL ) ); /* seeds rand() */ If you're going to use an explicit cast, might as well use the right one (because otherwise this could conceivably generate a signed/unsigned conversion warning). srand's sole argument is of type unsigned int. (Why exactly this is the case is not clear to me.) Minor ANSI C nitpick from the minor ANSI C advocate . . . -- Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "Love is not love which alters / when it alteration finds." / William Shakespeare, _Sonnets_, 116