Dave Malcolm <dmalc...@redhat.com> added the comment:

$ gdb --eval-command="break _PyRandom_Init" --eval-command="run" 
--eval-command="print _Py_HashSecret" --eval-command="set 
_Py_HashSecret.prefix=0xcdcdcd00" --eval-command="print _Py_HashSecret" 
--eval-command="continue" -eval-command="continue" --args python -c 
'a="\x00\xcf\x0b\x96\x19"; b="\x00\x6d\x29\x45\x18"; print(hash(a)); 
print(hash(b))'

On 32-bit:
$1 = {prefix = 0, suffix = 0}
$2 = {prefix = -842150656, suffix = 0}
1220138288
1220138288

On 64-bit:
$1 = {prefix = 0, suffix = 0}
$2 = {prefix = 3452816640, suffix = 0}
Continuing.
4087671194599937328
-1679444439011306192

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14621>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to