summaryrefslogtreecommitdiff
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 6af6e513d5..f18e1546eb 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -8250,6 +8250,7 @@ win32_urandom(PyObject *self, PyObject *args)
result = PyString_FromStringAndSize(NULL, howMany);
if (result != NULL) {
/* Get random data */
+ memset(PyString_AS_STRING(result), 0, howMany); /* zero seed */
if (! pCryptGenRandom(hCryptProv, howMany, (unsigned char*)
PyString_AS_STRING(result))) {
Py_DECREF(result);