title: Create a random token in Javascript based on user details
body: <p>I want to create a random string (token) which can be used to identify a user whilst avoiding any potential conflicts with any other users' tokens.</p>
  
  <p>What I was thinking of was an MD5 hash of <code>navigator.userAgent + new Date().getTime()</code> to generate the token but that requires a whole Javascript MD5 library to hash it which I don't really want to do.</p>
  
  <p>It has to be made up of A-Z/0-9 characters and ideally no longer than 32 characters. I am open to all ideas. Thanks!</p>
  
  <p><strong>Just to clarify I'm not looking for any random string generator, the random string has to be generated from the users details available through Javascript and can also use time to avoid potential conflicts!</strong></p>