Fix static_assert in random generator

This commit is contained in:
Robert Schulze 2022-10-20 11:20:18 +00:00
parent cdae7082a3
commit f6de964eaa
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -361,7 +361,7 @@ template<typename RandomEngine>
inline void TaskTable::initShards(RandomEngine && random_engine)
{
const String & fqdn_name = getFQDNOrHostName();
std::uniform_int_distribution<UInt8> get_urand(0, std::numeric_limits<UInt8>::max());
std::uniform_int_distribution<uint8_t> get_urand(0, std::numeric_limits<UInt8>::max());
// Compute the priority
for (const auto & shard_info : cluster_pull->getShardsInfo())