[Pkg-bazaar-commits] ./bzr/unstable r936: - weavebench should set random seed to make it reproducible

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:21:30 UTC 2009


------------------------------------------------------------
revno: 936
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Mon 2005-07-18 08:23:40 -0300
message:
  - weavebench should set random seed to make it reproducible
modified:
  tools/weavebench.py
-------------- next part --------------
=== modified file 'tools/weavebench.py'
--- a/tools/weavebench.py	2005-07-17 18:38:43 +0000
+++ b/tools/weavebench.py	2005-07-18 11:23:40 +0000
@@ -23,7 +23,7 @@
 from bzrlib.weave import Weave
 from bzrlib.weavefile import write_weave
 from bzrlib.progress import ProgressBar
-from random import randrange, randint
+from random import randrange, randint, seed
 import tempfile
 import hotshot, hotshot.stats
 import sys
@@ -31,6 +31,8 @@
 WEAVE_NAME = "bench.weave"
 NUM_REVS = 2000
 
+seed(0)
+
 def build():
     pb = ProgressBar(show_eta=False)
 



More information about the Pkg-bazaar-commits mailing list