danakt / uuid-by-string

Generates the RFC-4122 Name-Based UUID
MIT License
66 stars 12 forks source link

Several characters got the same uuid #19

Closed hscspring closed 2 years ago

hscspring commented 2 years ago
const getUuid = require('uuid-by-string');

const uuidHash = getUuid("好");
console.log(uuidHash)
const uuidHash2 = getUuid("白");
console.log(uuidHash2)

result:

c2b7df62-01fd-5336-a399-091f0a29550d c2b7df62-01fd-5336-a399-091f0a29550d

danakt commented 2 years ago

@hscspring thank you a lot for the opened issue! Fixes will be made in version 4.0