title: How to use boost::uuids::uuid to convert to 128/64 bit numbers?
body: <p>I use this code to produce UUIDs from boost:</p>
  
  <pre><code>boost::uuids::random_generator gen;
  boost::uuids::uuid uuidId = gen();
  string randomUUID = boost::lexical_cast&lt;std::string&gt;(uuidId);
  std::remove( randomUUID.begin(), randomUUID.end(), '-');
  randomUUID = "0x" + randomUUID;
  </code></pre>
  
  <p>It gives me hex numbers like: "0xCC5B9F6946EF4448A89EDB2042E0B084".</p>
  
  <p><strong>My question is: how convert this string (128 bit hex number) into 128 long long OR 64 bit long long (it it Ok to loose higher data)?</strong></p>
  
  <p>Standard C atoll and C++ std::stoll dont help in this case.</p>
  
  <p>UUID prefered for random generation quality.</p>
  
  <p>Thank you!</p>