$urandom uses the RNG (Random Number Generator) of the executing thread to get the next random number. Seeding the RNG of a thread is described as follows: "When a new dynamic thread is created, its RNG is seeded with the next random value from its parent thread. This property is called hierarchical seeding. When a static thread is created, its RNG is seeded with the next value from the initialization RNG of the module instance, interface instance, program instance, or package containing the thread declaration." (18.14.1) If $urandom is called with an argument (options). The argument value is used to initialize (seed) the RNG of the executing thread. - Ray. ________________________________ From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On Behalf Of Daniel Mlynek Sent: Monday, December 21, 2009 6:06 AM To: sv-ec@server.eda.org Subject: [sv-ec] $urandom in dynamic method which seed should be used by $urandom used in dynamic method call (object seed vs module instance seed vs thread seed)? which stability scheme (thread, vs object) should be used in such case? class C; function int rand; return $urand; endfunction endclass DANiel -- This message has been scanned for viruses and dangerous content by MailScanner <http://www.mailscanner.info/> , and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Dec 21 07:44:55 2009
This archive was generated by hypermail 2.1.8 : Mon Dec 21 2009 - 07:45:49 PST