You don't say, but I'm assuming you're using a recent'ish GHC snapshot. A wibble that prevented the system/standard RNG from being seeded with a time-varying value was fixed sometime last week, so 5.04 will have it included.
--sigbjorn ----- Original Message ----- From: "Ian Lynagh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 04, 2002 14:10 Subject: global random number generator initialisation > > The library report, in "17.3 The global random number generator", says > > It is initialised automatically in some system-dependent fashion, > for example, by using the time of day, or Linux's kernel random > number generator. > > However, under Linux "randomIO :: IO Int" seems to generate the same > values on each run. > > The IO versions, randomRIO and randomIO, use the global random > number generator (see Section 17.3). > > While the report doesn't require it to be set to something pseudo random > it would be nice if it was. Is there an obvious way to set it to > something pseudo random in Haskell? The Time module isn't as well > equiped as it could be for the task. > > > Thanks > Ian > _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
