Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!munnari.oz.au!bruce!trlluna!shiva!hui From: hui@shiva.trl.oz (Alvaro Hui) Newsgroups: comp.unix.programmer Subject: How to get the time of the day in C? Message-ID: <2584@trlluna.trl.oz> Date: 11 Jan 91 05:36:52 GMT Sender: news@trlluna.trl.oz Lines: 21 Hi all experts: I am writing a small program to generate random numbers in C and an idea came up in my mind: it is a good idea to use the time of the day as seed to my random generator! Unfortunately, I "man -k time" and search through all my 'C' books and couldn't came up an idea how to get current time in C. Can some of you folks help me? Thanks in advance! Alvaro, a.hui@trl.oz.au. =============================================================================== Alvaro Hui |ACSnet, hui@rhea.trl.oz.au 4th Year B.E.\ B.Sc. |Internet & akkh@mullian.ee.mu.OZ.AU University of Melbourne |Arpanet rcoahk@koel.co.rmit.OZ.AU