From 680dc21380fc220051f0785ba11b61181d5ab8cf Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 20 Nov 2013 13:47:13 +0100 Subject: [PATCH] update siphash24 test values --- Lib/test/test_hash.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py index 66e4155e921..f6657bd3cb7 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'