diff options
Diffstat (limited to 'together/node_modules/hexoid/dist/index.mjs')
-rw-r--r-- | together/node_modules/hexoid/dist/index.mjs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/together/node_modules/hexoid/dist/index.mjs b/together/node_modules/hexoid/dist/index.mjs deleted file mode 100644 index b5e3fea..0000000 --- a/together/node_modules/hexoid/dist/index.mjs +++ /dev/null @@ -1,15 +0,0 @@ -var IDX=256, HEX=[]; -while (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1); - -export default function (len) { - len = len || 16; - var str='', num=0; - return function () { - if (!str || num === 256) { - str=''; num=(1+len)/2 | 0; - while (num--) str += HEX[256 * Math.random() | 0]; - str = str.substring(num=0, len-2); - } - return str + HEX[num++]; - }; -} |