Mercurial > cpython-lru_cache-weakref
diff Include/pythonrun.h @ 75100:6b7704fe1be1 2.6
- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Mon, 20 Feb 2012 20:42:21 -0500 |
| parents | e38335d4df91 |
| children | 76d72e92fdea a0f43f4481e0 |
line wrap: on
line diff
--- a/Include/pythonrun.h Mon Feb 20 14:43:22 2012 -0500 +++ b/Include/pythonrun.h Mon Feb 20 20:42:21 2012 -0500 @@ -168,6 +168,8 @@ PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int); PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t); +/* Random */ +PyAPI_FUNC(int) _PyOS_URandom (void *buffer, Py_ssize_t size); #ifdef __cplusplus }
