[issue5588] Add --randseed to regrtest
Mark Dickinson
report at bugs.python.org
Sat Mar 28 23:52:05 CET 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
+1 on the idea.
I'm not sure I understand the patch, though. If the line:
random_seed = int(1000000 * random.random())
produces a random_seed of 0 (or if randseed=0 is supplied as an option),
it looks as though random.seed is never called; is this intentional?
Also, not that it really matters, but why do you use the expression above
instead of the simpler random.randrange(1000000)?
----------
nosy: +marketdickinson
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5588>
_______________________________________
More information about the Python-bugs-list
mailing list