]> granicus.if.org Git - python/commit
Issue #13703: add a way to randomize the hash values of basic types (str, bytes,...
authorGeorg Brandl <georg@python.org>
Mon, 20 Feb 2012 18:54:16 +0000 (19:54 +0100)
committerGeorg Brandl <georg@python.org>
Mon, 20 Feb 2012 18:54:16 +0000 (19:54 +0100)
commit2daf6ae2495c862adf8bc717bfe9964081ea0b10
treeebd7efe668e4f7842c6d51bdbde47b00f92a57db
parentec1712a1662282c909b4cd4cc0c7486646bc9246
Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
32 files changed:
Doc/library/sys.rst
Doc/reference/datamodel.rst
Doc/using/cmdline.rst
Include/object.h
Include/pydebug.h
Include/pythonrun.h
Lib/json/__init__.py
Lib/os.py
Lib/test/mapping_tests.py
Lib/test/regrtest.py
Lib/test/script_helper.py
Lib/test/test_cmd_line.py
Lib/test/test_descr.py
Lib/test/test_hash.py
Lib/test/test_os.py
Lib/test/test_set.py
Lib/test/test_sys.py
Lib/test/test_urllib.py
Lib/tkinter/test/test_ttk/test_functions.py
Makefile.pre.in
Misc/NEWS
Misc/python.man
Modules/datetimemodule.c
Modules/main.c
Modules/posixmodule.c
Objects/bytesobject.c
Objects/object.c
Objects/unicodeobject.c
PCbuild/pythoncore.vcproj
Python/pythonrun.c
Python/random.c [new file with mode: 0644]
Python/sysmodule.c