Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!bloom-beacon!scs From: scs@athena.mit.edu (Steve Summit) Newsgroups: comp.lang.c Subject: Re: randomness Message-ID: <1990Apr11.232547.22298@athena.mit.edu> Date: 11 Apr 90 23:25:47 GMT References: <21274@eerie.acsu.Buffalo.EDU> <4878@helios.TAMU.EDU> <1990Apr11.001355.25937@athena.mit.edu> Sender: news@athena.mit.edu (News system) Reply-To: scs@adam.mit.edu (Steve Summit) Organization: Massachusetts Institute of Technology Lines: 13 In article <1990Apr11.001355.25937@athena.mit.edu> my evil twin Skippy wrote: >Make that > srand((int)time((time_t)NULL)); This should, of course, be srand((int)time((time_t *)NULL)); Forty lashes with a wet noodle for me for posting a code fragment I didn't compile and lint. Thanks to Mark Brader for pointing this out so kindly, and to the rest of you for not ridiculing me (yet...)