[pypy-issue] [issue1474] Random seed() and random() not always matching CPython

Raymond Hettinger tracker at bugs.pypy.org
Sun May 5 10:03:15 CEST 2013


New submission from Raymond Hettinger <python at rcn.com>:

Running on Mac OS X 10.8, I observed CPython vs PyPy differences in seeded 
random numbers:

$ pypy --version
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:42:54)
[PyPy 1.9.0 with GCC 4.2.1]
$ pypy -c    "from random import *; seed('iss'); print random()"
0.128149120625
$ python -c  "from random import *; seed('iss'); print random()"
0.418550760801
$ pypy -c    "from random import *; seed('now'); print random()"
0.60810839303
$ python -c  "from random import *; seed('now'); print random()"
0.60810839303

----------
messages: 5664
nosy: pypy-issue, rhettinger
priority: bug
release: 1.9
status: unread
title: Random seed() and random() not always matching CPython

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1474>
________________________________________


More information about the pypy-issue mailing list