forked from enviPath/enviPy
Current Dev State
This commit is contained in:
13
static/js/ketcher2/node_modules/es5-ext/string/random-uniq.js
generated
vendored
Normal file
13
static/js/ketcher2/node_modules/es5-ext/string/random-uniq.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
var generated = Object.create(null)
|
||||
|
||||
, random = Math.random;
|
||||
|
||||
module.exports = function () {
|
||||
var str;
|
||||
do {
|
||||
str = random().toString(36).slice(2);
|
||||
} while (generated[str]);
|
||||
return str;
|
||||
};
|
||||
Reference in New Issue
Block a user