12345678910111213141516171819 |
- /*!
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
- * v1.0.0-beta.97
- */
- function gen(counts) {
- return counts
- .map((count) => {
- let out = "";
- for (let i = 0; i < count; i++) {
- out += (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
- }
- return out;
- })
- .join("-");
- }
- const guid = () => gen([2, 1, 1, 1, 3]);
- export { guid as g };
|