mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
ensure no one tries to hash things before the random seed is found
This commit is contained in:
parent
9571155ae4
commit
69e9727657
5 changed files with 15 additions and 4 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue