From: Eric Price Date: Sun, 22 Jun 2008 05:26:46 +0000 (-0400) Subject: Seed the random number generator after the fork. X-Git-Tag: sipb-xen-www/3.6~28 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/ca19f871d7c13c32acd29bb27a73237d36bd2657?ds=sidebyside Seed the random number generator after the fork. svn path=/trunk/packages/sipb-xen-www/; revision=634 --- diff --git a/code/main.py b/code/main.py index 9d39df6..d67faa8 100755 --- a/code/main.py +++ b/code/main.py @@ -663,6 +663,8 @@ class App: self.state = State(self.username) self.state.environ = environ + random.seed() #sigh + def __iter__(self): start_time = time.time() sipb_xen_database.clear_cache()