summaryrefslogtreecommitdiff
path: root/school/node_modules/xxhashjs/examples/one_step.js
diff options
context:
space:
mode:
Diffstat (limited to 'school/node_modules/xxhashjs/examples/one_step.js')
-rw-r--r--school/node_modules/xxhashjs/examples/one_step.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/school/node_modules/xxhashjs/examples/one_step.js b/school/node_modules/xxhashjs/examples/one_step.js
new file mode 100644
index 0000000..d70bf0f
--- /dev/null
+++ b/school/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() )