summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_hash.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-11-20 12:47:13 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-11-20 12:47:13 (GMT)
commit680dc21380fc220051f0785ba11b61181d5ab8cf (patch)
tree6a9e3112518c24d539bb8b894fc72ac05aefcda1 /Lib/test/test_hash.py
parenta5bcd7c0ee65c3b0cf711e69d4fff723eb9673b5 (diff)
downloadcpython-680dc21380fc220051f0785ba11b61181d5ab8cf.zip
cpython-680dc21380fc220051f0785ba11b61181d5ab8cf.tar.gz
cpython-680dc21380fc220051f0785ba11b61181d5ab8cf.tar.bz2
update siphash24 test values
Diffstat (limited to 'Lib/test/test_hash.py')
-rw-r--r--Lib/test/test_hash.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py
index 66e4155..f6657bd 100644
--- a/Lib/test/test_hash.py
+++ b/Lib/test/test_hash.py
@@ -207,21 +207,17 @@ class StringlikeHashRandomizationTests(HashRandomizationTests):
[-678966196, 573763426263223372, -820489388, -4282905804826039665],
],
'siphash24': [
+ # NOTE: PyUCS2 layout depends on endianess
# seed 0, 'abc'
- [2025351752, 4596069200710135518, 1433332804,
- -3481057401533226760],
+ [1198583518, 4596069200710135518, 1198583518, 4596069200710135518],
# seed 42, 'abc'
- [-774632014, -4501618152524544106, 1054608210,
- -1493500025205289231],
+ [273876886, -4501618152524544106, 273876886, -4501618152524544106],
# seed 42, 'abcdefghijk'
- [-1436007334, 4436719588892876975, -1436007334,
- 4436719588892876975],
- # seed 0, 'äú∑ℇ', PyUCS2 layout depends on endianess
- [1386693832, 5749986484189612790, 1776982909,
- -5915111450199468540],
+ [-1745215313, 4436719588892876975, -1745215313, 4436719588892876975],
+ # seed 0, 'äú∑ℇ'
+ [493570806, 5749986484189612790, -1006381564, -5915111450199468540],
# seed 42, 'äú∑ℇ'
- [1260387190, -2947981342227738144, 1430287772,
- -4296699217652516017],
+ [-1677110816, -2947981342227738144, -1860207793, -4296699217652516017],
],
'fnv': [
# seed 0, 'abc'