summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-02-21 16:08:50 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-02-21 16:08:50 (GMT)
commit26da920001941b0cd74981772924a6aab4d2881a (patch)
tree89683553a0a02950f41b652e225b062736ed1ae7 /Include
parentb69fa1f8b7b935c79b193502358bd59b685afd77 (diff)
downloadcpython-26da920001941b0cd74981772924a6aab4d2881a.zip
cpython-26da920001941b0cd74981772924a6aab4d2881a.tar.gz
cpython-26da920001941b0cd74981772924a6aab4d2881a.tar.bz2
ensure no one tries to hash things before the random seed is found
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h4
1 files changed, 4 insertions, 0 deletions
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 @@ 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) PyString_AS_STRING(PyObject_Repr(obj))