function genID() {
            // Rnd logic from http://stackoverflow.com/a/8084248
            var rnd = Math.random().toString(36).substr(2, 5);
            return MSG_ID_PREFIX + ':' + rnd;
        }
/**
         * Generate a unique ID string using known prefix and random chars.
         * @returns {string} unique ID
         */
Generate a unique ID string using known prefix and random chars.
@returns {string} unique ID
Generate a unique ID string using known prefix and random chars . @returns { string } unique ID
function genID() {
            var rnd = Math.random().toString(36).substr(2, 5);
            return MSG_ID_PREFIX + ':' + rnd;
        }
function genID ( ) { var rnd = Math . random ( ) . toString ( 36 ) . substr ( 2 , 5 ) ; return MSG_ID_PREFIX + ':' + rnd ; }
Generate a unique ID string using known prefix and random chars.
Generate a unique ID string using known prefix and random chars .
// Rnd logic from http://stackoverflow.com/a/8084248