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/Modules/datetimemodule.c b/Modules/datetimemodule.c index f3103ea..5401068 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c
@@ -2565,6 +2565,7 @@ register unsigned char *p; register long x; + assert(_Py_HashSecret_Initialized); p = (unsigned char *) data; x = _Py_HashSecret.prefix; x ^= *p << 7;