File "index.ts"
Full Path: /home/warrior1/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-videopress/src/client/utils/uid/index.ts
File size: 296 bytes
MIME-type: text/plain
Charset: utf-8
export default () => {
const cryptoArray = new Uint32Array( 10 );
crypto.getRandomValues( cryptoArray );
const timestamp = performance.now().toString( 36 );
const random = Array.from( cryptoArray )
.map( item => item.toString( 36 ) )
.join( '' );
return `${ timestamp }-${ random }`;
};