Xref: utzoo comp.unix.sysv386:8655 comp.lang.c:39778 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!mcsun!hp4nl!targon!andre From: andre@targon.UUCP (Andre van Dalen) Newsgroups: comp.unix.sysv386,comp.lang.c Subject: Re: time(0L) - history of a misconception (was Re: SCO password generator) Message-ID: <1796@targon.UUCP> Date: 1 Jun 91 21:37:10 GMT References: <588@sherpa.UUCP> <1141@mwtech.UUCP> <381@tmcsys.UUCP> Organization: Siemens Nixdorf Informationsystems BV.,SWZ, Vianen, the Netherlands. Lines: 22 In article <381@tmcsys.UUCP> lh@aega84.UUCP (L. Hirschbiegel) writes: >In article <1141@mwtech.UUCP> martin@mwtech.UUCP (Martin Weitzel) writes: >>In article <588@sherpa.UUCP> rac@sherpa.UUCP (Roger Cornelius) writes: >>[...] >>> long seed = time(0L); >> ^^--------- wrong >> time((long *)0); >> ^^^^^^^^^--- right [ removed assembler listing (gives us a clue :-) ] >>Repeat after me: POINTER to long. > >Repeat after me: IT DOESN'T MATTER :-) Never worked under MSDOeSn't in different memory models or on 64 bit machines have you? -- The mail| AAA DDDD It's not the kill, but the thrill of the chase. demon...| AA AAvv vvDD DD Ketchup is a vegetable. hits!.@&| AAAAAAAvv vvDD DD {nixbur|nixtor}!adalen.via --more--| AAA AAAvvvDDDDDD Andre van Dalen, uunet!hp4nl!targon!andre