ensure no one tries to hash things before the random seed is found

This commit is contained in:
Benjamin Peterson 2012-02-21 11:08:50 -05:00
parent 9571155ae4
commit 69e9727657
5 changed files with 15 additions and 4 deletions

View file

@ -479,6 +479,10 @@ typedef struct {
} _Py_HashSecret_t;
PyAPI_DATA(_Py_HashSecret_t) _Py_HashSecret;
#ifdef Py_DEBUG
PyAPI_DATA(int) _Py_HashSecret_Initialized;
#endif
/* Helper for passing objects to printf and the like */
#define PyObject_REPR(obj) _PyUnicode_AsString(PyObject_Repr(obj))