Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.5
Changeset: r90910:96e11f7f941c
Date: 2017-04-01 23:20 +0200
http://bitbucket.org/pypy/pypy/changeset/96e11f7f941c/

Log:    Fix (isn't this function also used on Posix platforms?)

diff --git a/pypy/module/posix/interp_posix.py 
b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -2168,7 +2168,7 @@
         # not a bound method like 'getexecutioncontext().checksignals'.
         # Otherwise, we can't use it from several independent places.
         _sigcheck.space = space
-        return space.newbytes(rurandom.urandom(context, n, _signal_checker))
+        return space.newbytes(rurandom.urandom(context, size, _signal_checker))
     except OSError as e:
         # 'rurandom' should catch and retry internally if it gets EINTR
         # (at least in os.read(), which is probably enough in practice)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to