commit | 69e9727657dad167215b656de910d95cefe1ee45 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Feb 21 11:08:50 2012 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Feb 21 11:08:50 2012 -0500 |
tree | e90351e4f45e2f07dbd3bb4c877da686075fec1e | |
parent | 9571155ae4ff86b4275950fcdfadcc76475943e3 [diff] |
ensure no one tries to hash things before the random seed is found
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 @@ } _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))