We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b375fc2 commit ca361d9Copy full SHA for ca361d9
1 file changed
apps/port/xml2geo.js
@@ -1,7 +1,7 @@
1
parser = new DOMParser();
2
3
function generateRandomId(length = 6) {
4
- return Math.random().toString(36).substr(2, length);
+ return Array.from({length}, () => Math.floor(Math.random() * 36).toString(36)).join('');
5
}
6
7
var template = {
0 commit comments