-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
java code:
long key = LongHashFunction.xx().hashChar('a');
String key = Long.toHexString(key);
System.out.println(key);
result: e513e02c99167f96
js code:
const xxhash = require('xxhash')
const buffer = Buffer.from('a')
const key = xxhash.hash64(buffer, 0).toString('hex')
console.log(key)
result: 5b6e8ca9f1c44ed2
I don't know the reason, thacks for the author!!!
Metadata
Metadata
Assignees
Labels
No labels