@savantly/gremlin-js
Version:
Gremlin client [Tinkerpop]
15 lines • 430 B
JavaScript
export class Guid {
static s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
static guid() {
return this.s4() + this.s4() + '-' + this.s4() + '-' + this.s4() + '-' +
this.s4() + '-' + this.s4() + this.s4() + this.s4();
}
static random() {
return Guid.guid();
}
}
//# sourceMappingURL=guid.js.map