MCPcopy Create free account
hub / github.com/comaps/comaps / randomString

Function randomString

libs/map/map_tests/mwm_url_tests.cpp:521–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521string randomString(size_t size, uint32_t seed)
522{
523 string result(size, '0');
524 mt19937 rng(seed);
525 for (size_t i = 0; i < size; ++i)
526 result[i] = 'a' + rng() % 26;
527 return result;
528}
529
530void generateRandomTest(uint32_t numberOfPoints, size_t stringLength)
531{

Callers 1

generateRandomTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected