]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/string/random-uniq.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / string / random-uniq.js
1 'use strict';
2
3 var generated = Object.create(null)
4
5   , random = Math.random;
6
7 module.exports = function () {
8         var str;
9         do { str = random().toString(36).slice(2); } while (generated[str]);
10         return str;
11 };