We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de64a6 commit caccecdCopy full SHA for caccecd
src/utils/uuid.ts
@@ -3,6 +3,6 @@ import { v5 as uuid5 } from 'uuid';
3
// Generates UUIDv5, used to consistently generate the same UUID for
4
// a specific identifier and namespace
5
export function generateUuid5(identifier: string | number, namespace: string | number = ''): string {
6
- const stringified = JSON.stringify(identifier) + JSON.stringify(namespace);
+ const stringified = identifier.toString() + namespace.toString();
7
return uuid5(stringified, uuid5.DNS).toString();
8
}
0 commit comments