[issue9123] insecure os.urandom on VMS
Zooko O'Whielacronx
report at bugs.python.org
Wed Jun 30 05:49:28 CEST 2010
Zooko O'Whielacronx <zooko at zooko.com> added the comment:
HACK Zooko-Ofsimplegeos-MacBook-Pro:~/playground/python/release27-trunk$ svn diff
Index: Modules/posixmodule.c
===================================================================
--- Modules/posixmodule.c (revision 82382)
+++ Modules/posixmodule.c (working copy)
@@ -8481,7 +8481,7 @@
result = PyString_FromStringAndSize(NULL, howMany);
if (result != NULL) {
/* Get random data */
- if (RAND_pseudo_bytes((unsigned char*)
+ if (RAND_bytes((unsigned char*)
PyString_AS_STRING(result),
howMany) < 0) {
Py_DECREF(result);
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9123>
_______________________________________
More information about the Python-bugs-list
mailing list