home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!munnari.oz.au!metro!socs.uts.edu.au!syzygy!jwwondra
- From: jwwondra@socs.uts.edu.au (James Wondrasek)
- Subject: A: Good seed for drand
- Message-ID: <jwwondra.726595091@syzygy>
- Sender: news@socs.uts.edu.au
- Reply-To: jwwondra@socs.uts.edu.au
- Organization: University of Technology, Sydney
- Date: 9 Jan 93 15:58:11 GMT
- Lines: 17
-
- From now on I will put my faith in grep and not my own eyes...
-
- The answer is use time() which returns type time_t which turns out to
- be a typedef for a long...this is present in stdtypes.h which I didn't look
- in.
-
- You could use it like this:
-
- srand48( (long) time( (a_time_t_ptr) ) )
-
-
- James Wondrasek
-
- PS Thanks to everyone who emailed me their answers and their man pages :-)
-
- jwwondra@socs.uts.edu.au
-
-