Code:
   1.
      std::string bucket = "abcdefghijklmnopqrstuvwxyz";
   2.
      std::string uuid;
   3.
      for ( ... ) {
   4.
      uuid += bucket[rand() % bucket.size()];
   5.
      }


Sponsored Links