Xref: utzoo comp.unix.sysv386:8428 comp.lang.c:39600 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!pdn!palan!sherpa!rac From: rac@sherpa.UUCP (Roger Cornelius) Newsgroups: comp.unix.sysv386,comp.lang.c Subject: time(0L): the final chapter (was Re: time(0L)... - history of a misconception (was Re: SCO password generator) Message-ID: <597@sherpa.UUCP> Date: 25 May 91 20:48:24 GMT References: <1991May24.044751.5933@virtech.uucp> Followup-To: comp.unix.sysv386 Organization: Personal System Computing, St. Petersburg, FL Lines: 45 From article <1991May24.044751.5933@virtech.uucp>, by cpcahil@virtech.uucp (Conor P. Cahill): > lothar@tmcsys.UUCP (L. Hirschbiegel) writes: > >>This was posted to newsgroup "comp.UNIX.SYSV386", right?? > > NO. It was cross-posted to comp.unix.sysv386 AND comp.lang.c No, the original article, as well as my followup (I posted the code everyone has been arguing about) were posted only to comp.unix.sysv386. Some later follow-upper must have done the cross-posting. Here are the headers from my post: Subject: Re: SCO password generator Newsgroups: comp.unix.sysv386 References: <1991May14.040042.15199@jpradley.jpr.com> Regardless, of where it was posted, I think everybody now knows that time(0L) != time((long*)0). I'm sure I do. For those interested, I've included a patch below :-). Hopefully this will end this thread. Roger --- cut here --- *** a1.c Sat May 25 16:29:31 1991 --- a2.c Sat May 25 16:29:58 1991 *************** *** 11,17 **** { char word[MAX], hyword[2*MAX]; ! long seed = time(0L); set_auth_parameters(ac,av); --- 11,17 ---- { char word[MAX], hyword[2*MAX]; ! long seed = time((long*)0); set_auth_parameters(ac,av); --- cut here --- -- Roger Cornelius rac@sherpa.UUCP uunet!sherpa!rac