From 4b1f2e1db0d9ae2c791fcbd7c250193b3d0322ef Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 8 Jun 2016 13:20:23 -0700 Subject: [PATCH] siphash: minor. --- lib/bcoin/siphash.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/bcoin/siphash.js b/lib/bcoin/siphash.js index 27cc84bf..baa950a4 100644 --- a/lib/bcoin/siphash.js +++ b/lib/bcoin/siphash.js @@ -107,7 +107,7 @@ function sum64(a, b) { } function rotl64(x, b) { - var hi, lo, h1, l1, h2, l2, c; + var h1, l1, h2, l2, c; // v1 = x << b if (b < 32) { @@ -133,11 +133,8 @@ function rotl64(x, b) { } // v1 | v2 - hi = h1 | h2; - lo = l1 | l2; - - x.hi = hi; - x.lo = lo; + x.hi = h1 | h2; + x.lo = l1 | l2; if (x.hi < 0) x.hi += 0x100000000;