]> granicus.if.org Git - python/commit
bpo-32260: don't byte swap siphash keys (#4771)
authorBenjamin Peterson <benjamin@python.org>
Sat, 9 Dec 2017 19:24:18 +0000 (11:24 -0800)
committerGitHub <noreply@github.com>
Sat, 9 Dec 2017 19:24:18 +0000 (11:24 -0800)
commit4e3e156391e70cd23cae18f2629ec323b3b1e7de
tree30304a399a9096625915bd4a01b0bd881ba1bdab
parent42aa93b8ff2f7879282b06efc73a31ec7785e602
bpo-32260: don't byte swap siphash keys (#4771)

Reference siphash takes the keys as a bytes, so it makes sense to byte swap
when reifying the keys as 64-bit integers. However, Python's siphash takes host
integers in to start with.
Misc/NEWS.d/next/Core and Builtins/2017-12-09-11-03-51.bpo-32260.1DAO-p.rst [new file with mode: 0644]
Python/pyhash.c