daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function generateUUID() {
  2.     var d = new Date().getTime();
  3.     return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  4.         var r = (d + Math.random() * 16) % 16 | 0;
  5.         d = Math.floor(d / 16);
  6.         return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);
  7.     });
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top