From 69e9727657dad167215b656de910d95cefe1ee45 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 21 Feb 2012 11:08:50 -0500 Subject: ensure no one tries to hash things before the random seed is found --- Objects/bytesobject.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Objects/bytesobject.c') diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index e6ab440caa..db93f37bac 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -896,6 +896,7 @@ bytes_hash(PyBytesObject *a) register unsigned char *p; register long x; + assert(_Py_HashSecret_Initialized); if (a->ob_shash != -1) return a->ob_shash; len = Py_SIZE(a); -- cgit v1.2.1