44static const std::string
ALPHABET =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
62 static std::random_device
rd;
66 static std::mt19937
gen(
rd());
69 std::uniform_int_distribution<size_t>
dis(0,
ALPHABET.size() - 1);
74 std::generate_n(
str.begin(),
length, [&] { return ALPHABET[dis(gen)]; });
103 static std::random_device
rd;
107 static std::mt19937
gen(
rd());
T * alloc_to_device(size_t size)
Allocates memory on the CUDA device.
std::string get_random_word(size_t length) noexcept
Implementation of get_random_word function.
std::vector< std::string > get_random_words(size_t length, size_t num_words, double mean_lcp_length) noexcept
Implementation of get_random_words function.
static const std::string ALPHABET
The alphabet used for generating random strings.
Provides utilities for generating synthetic string datasets for benchmark testing.