commit | 26da920001941b0cd74981772924a6aab4d2881a | [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 | 89683553a0a02950f41b652e225b062736ed1ae7 | |
parent | b69fa1f8b7b935c79b193502358bd59b685afd77 [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 0b7d41d..c0601c5 100644 --- a/Include/object.h +++ b/Include/object.h
@@ -512,6 +512,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) PyString_AS_STRING(PyObject_Repr(obj))