From 9def1d8e21ba6b6887a7283acde3aaa6a8571ad8 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 3 Jul 2020 12:43:51 +0000 Subject: [PATCH] changed the initial data for sip hash --- mio/lib/utl-siph.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mio/lib/utl-siph.c b/mio/lib/utl-siph.c index 271bbd9..326b5bc 100644 --- a/mio/lib/utl-siph.c +++ b/mio/lib/utl-siph.c @@ -111,7 +111,13 @@ static MIO_INLINE sip_uint64_t* xor64_to (sip_uint64_t* v, sip_uint64_t s) #endif /* (MIO_SIZEOF_UINT64_T > 0) */ -static const char sip_init_state_bin[] = "uespemos""modnarod""arenegyl""setybdet"; +static const char sip_init_state_bin[] = +{ + 0x75, 0x65, 0x73, 0x70, 0x65, 0x6d, 0x6f, 0x73, + 0x6d, 0x6f, 0x64, 0x6e, 0x61, 0x72, 0x6f, 0x64, + 0x61, 0x72, 0x65, 0x6e, 0x65, 0x67, 0x79, 0x6c, + 0x73, 0x65, 0x74, 0x79, 0x62, 0x64, 0x65, 0x74 +}; #define sip_init_state (*(sip_uint64_t(*)[4])sip_init_state_bin) #define SIP_COMPRESS(v0, v1, v2, v3) do {\