      1 var guid = guid || {};
      2 var Ozone = Ozone || {};
      3 Ozone.util = Ozone.util || {};
      4
      5 guid.util = function() {
      6 	function S4() {
      7 		return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
      8 	}
      9 	return {
     10 		guid : function () {
     11 		  	return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());
     12 		}
     13 	};
     14 }();
     15
     16 /**
     17  * @description Returns a globally unique identifier (guid)
     18  *
     19  * @returns {String} guid
     20  */
     21 Ozone.util.guid = function() {
     22     return guid.util.guid();
     23 }