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] [blame] |
ensure no one tries to hash things before the random seed is found
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 5986fb8..2ec878f 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -7341,6 +7341,7 @@ Py_UNICODE *p; long x; + assert(_Py_HashSecret_Initialized); if (self->hash != -1) return self->hash; len = Py_SIZE(self);