X-Sender: dlanor AT mail DOT dds DOT nl Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Mon, 24 May 1999 19:08:35 +0200 To: djgpp AT delorie DOT com From: Dlanor Blytkerchan Subject: srand() or time() Reply-To: djgpp AT delorie DOT com Hi all! Here's a weird little fact (not a real problem, but weird notheless): The following code results in an error: #include #include int main(void) { srand(time(0)); return(0); } // main() When stepping through this in RHIDE, watching errno like a hawk, immediatly after srand(time(0)); errno is set to 22 (ENOENT) (and thus causes my program to believe there's an error, which it wisely ignores). Is there anything I'm missing here, or is this just some weird frill in the RNG or the time()? Greetz! Dlanor