diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-02-21 16:08:50 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-02-21 16:08:50 (GMT) |
commit | 69e9727657dad167215b656de910d95cefe1ee45 (patch) | |
tree | e90351e4f45e2f07dbd3bb4c877da686075fec1e /Include | |
parent | 9571155ae4ff86b4275950fcdfadcc76475943e3 (diff) | |
download | cpython-69e9727657dad167215b656de910d95cefe1ee45.zip cpython-69e9727657dad167215b656de910d95cefe1ee45.tar.gz cpython-69e9727657dad167215b656de910d95cefe1ee45.tar.bz2 |
ensure no one tries to hash things before the random seed is found
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 7848cf4..dc58995 100644 --- a/Include/object.h +++ b/Include/object.h @@ -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)) |