From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Srandom() Date: 29 Mar 1998 07:44:33 GMT Organization: The National Capital FreeNet Lines: 19 Message-ID: <6fku51$909@freenet-news.carleton.ca> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet2.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk How quickly does srandom() in DJGPP's libc execute? Would an added srandom() before every random() in a program that uses random() extensively cause a noticeable slowdown? Reason I ask is because something like that might be necessary to make a threadsafe random number generator class so that each random number generator instance can be seeded independently and give consistent results. Please reply by email if possible. -- .*. Friendship, companionship, love, and having fun are the reasons for -() < life. All else; sex, money, fame, etc.; are just to get/express these. `*' Send any and all mail with attachments to the hotmail address please. Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com