export default ( ) => { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' . replace ( /[xy]/g , ( character ) => { const randomHex = ( Math . random ( ) * 16 ) | 0 ; const value = character === 'x' ? randomHex : ( randomHex & 0x3 ) | 0x8 ; return value . toString ( 16 ) ; } ) ; } ;