UNPKG

ringcentral-widgets

Version:
22 lines (17 loc) 602 B
"use strict"; require("core-js/modules/es6.object.define-property"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = simpleHash; require("core-js/modules/es6.date.now"); /** * @function * @description A substitute for uuid. Given the use for the function, this should be sufficent to avoid collision. * @return {String} Random hash string. */ function simpleHash() { var token = "".concat(Math.floor(Math.random() * 10000), "-").concat(Date.now(), "-").concat(Math.floor(Math.random() * 10000)); return btoa(token); } //# sourceMappingURL=index.js.map