index.js
function (id, length) {
            length = length || 8;

            id = id || words.generate(length);

            while (this.mapValues[id] !== undefined) {
                id = words.generate(length);
                length += 1;
            }

            return id.toString();
        }
function (id, length) {
            length = length || 8;

            id = id || words.generate(length);

            while (this.mapValues[id] !== undefined) {
                id = words.generate(length);
                length += 1;
            }

            return id.toString();
        }
function ( id , length ) { length = length || 8 ; id = id || words . generate ( length ) ; while ( this . mapValues [ id ] !== undefined ) { id = words . generate ( length ) ; length += 1 ; } return id . toString ( ) ; }
Generate random, unique id

@private
@param {String} [id=null]
@param {Number} [length=8]
@return {String}
Generate random unique id