static void _random_url (struct oio_url_s *url) { char buf[65]; oio_url_set (url, OIOURL_NS, ns); _random_string (buf, sizeof(buf)); oio_url_set (url, OIOURL_ACCOUNT, buf); _random_string (buf, sizeof(buf)); oio_url_set (url, OIOURL_USER, buf); }
void random_gen::random_string_to_be_compressed(ostream& out, int l, int h, const oid_t& id) { out << "11\n"; out << id << "\n"; _random_string(out, l, h); }
void random_gen::random_string(ostream& out, int low, int high, Boolean x) { if ( x == true ) out << "6\n"; _random_string(out, low, high); }