[pypy-issue] [issue1381] random() generator returning result outside the 0.0 .. 1.0 domain.

Amaury Forgeot d Arc tracker at bugs.pypy.org
Wed Jan 23 21:18:36 CET 2013


Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

Unfortunately the unit test added by CPython http://hg.python.org/cpython/rev/6df0b4ed8617
already passes with PyPy.  Did you experience this issue on PyPy?

The test passes probably for a bad reason, the jumpahead implementation is slightly different on PyPy: 
compare
    for (i = N-1; i > 1; i--) {
with
    for i in range(N - 1, 0, -1):

----------
nosy: +amaury
status: unread -> chatting

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


More information about the pypy-issue mailing list