lepu-test-platform-web/node_modules/xxhashjs/examples/one_step.js

6 lines
111 B
JavaScript

var XXH = require('..')
var h = XXH.h32( 'abcd', 0xABCD ).toString(16)
console.log( '0x' + h.toUpperCase() )