using rnd = mt19937;
using dst = uniform_int_distribution<T>;
- auto time = duration_cast<microseconds>(system_clock::now().time_since_epoch());
+ auto time = duration_cast<nanoseconds>(system_clock::now().time_since_epoch());
auto seed = static_cast<rnd::result_type>(time.count() % numeric_limits<T>::max());
auto rgen = rnd{seed};
return dst(min, max)(rgen);
array<size_t, NUM_KEYS> len;
for (auto i = 0; i < NUM_KEYS; ++i) {
- str[i] = random_ascii_string(random_num<size_t>(24, 32));
+ str[i] = random_ascii_string(36);
chr[i] = str[i].data();
len[i] = str[i].length();
+ cerr << str[i] << endl;
}
REQUIRE_SUCCESS(memcached_mget(memc, chr.data(), len.data(), NUM_KEYS));