UNPKG

@savantly/gremlin-js

Version:
15 lines 430 B
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