15 lines
223 B
TypeScript
15 lines
223 B
TypeScript
|
import uuidv1 from 'uuid/v1';
|
||
|
|
||
|
const R = 0x52;
|
||
|
const e = 0x65;
|
||
|
const n = 0x6e;
|
||
|
const a = 0x61;
|
||
|
const i = 0x69;
|
||
|
const nice = 0x45;
|
||
|
|
||
|
export function uuid(): string {
|
||
|
return uuidv1({
|
||
|
node: [R, e, n, a, i, nice],
|
||
|
});
|
||
|
}
|