From 5f45fa049cda75f64e120247c31ba122824322ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 8 Jun 2020 10:53:38 +0200 Subject: [PATCH] Add missing included code --- js/tests/block-chain_test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/tests/block-chain_test.js b/js/tests/block-chain_test.js index 59e5973a7..84c3c82a8 100644 --- a/js/tests/block-chain_test.js +++ b/js/tests/block-chain_test.js @@ -1,3 +1,8 @@ +const hashCode = str => + ( + [...str].reduce((h, c) => (h = (h << 5) - h + c.charCodeAt(0)) & h, 0) >>> 0 + ).toString(36) +// /*/ // ⚡ export const tests = [] const t = (f) => tests.push(f)