summaryrefslogtreecommitdiff
path: root/alarm/node_modules/xxhashjs/examples/one_step.js
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/xxhashjs/examples/one_step.js')
-rw-r--r--alarm/node_modules/xxhashjs/examples/one_step.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/alarm/node_modules/xxhashjs/examples/one_step.js b/alarm/node_modules/xxhashjs/examples/one_step.js
new file mode 100644
index 0000000..d70bf0f
--- /dev/null
+++ b/alarm/node_modules/xxhashjs/examples/one_step.js
@@ -0,0 +1,5 @@
+var XXH = require('..')
+
+var h = XXH.h32( 'abcd', 0xABCD ).toString(16)
+
+console.log( '0x' + h.toUpperCase() )