Issue1912

classification
Title: Randomization of hashes
Type: Severity: normal
Components: Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, amak, fwierzbicki
Priority: Keywords:

Created on 2012-06-08.02:19:44 by Arfrever, last changed 2013-02-27.18:32:39 by fwierzbicki.

Messages
msg7191 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2012-06-08.02:19:42
Randomization of hashes of str/bytes, unicode/str and datetime objects is supported in newer CPython versions:
CPython >=2.6.8 in 2.6 branch
CPython >=2.7.3 in 2.7 branch
CPython >=3.1.5 in 3.1 branch
CPython >=3.2.3 in 3.2 branch
CPython >=3.3
  
-R option and PYTHONHASHSEED="random" environmental variable enable randomization of hashes in CPython <3.3.
Randomization of hashes is enabled by default in CPython >=3.3, so -R option and PYTHONHASHSEED="random" have no effect in CPython >=3.3.
PYTHONHASHSEED environmental variable can also be an integer in range [0, 4294967295], which sets predictable seed of hash values.
See: http://bugs.python.org/issue13703

I suggest that Jython 2.7 support -R option and PYTHONHASHSEED environmental variable.
msg7192 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2012-06-08.19:05:35
Jython is highly unlikely to provide this feature -- we internally use ConcurrentHashMap from the JDK as our dict implementation and plan to keep it that way. Luckily the incredible Doug Lea is fixing ConcurrentHashMap for JDK8 and that will solve this problem for us. See http://concurrency.markmail.org/thread/tcv5cm762ouc47qa for details.
History
Date User Action Args
2013-02-27 18:32:39fwierzbickisetstatus: open -> closed
resolution: wont fix
2012-08-28 22:23:09amaksetnosy: + amak
2012-06-08 19:05:36fwierzbickisetnosy: + fwierzbicki
messages: + msg7192
2012-06-08 02:19:44Arfrevercreate