UNPKG

passbooker

Version:
11 lines (7 loc) 233 B
'use strict'; var s4 = function() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); }; module.exports.guid = function() { return [ s4() + s4(), s4(), s4(), s4(), s4() + s4() + s4() ].join('-'); };