Skip to content

Commit f6de964

Browse files
committed
Fix static_assert in random generator
1 parent cdae708 commit f6de964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/copier/TaskTableAndShard.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ template<typename RandomEngine>
361361
inline void TaskTable::initShards(RandomEngine && random_engine)
362362
{
363363
const String & fqdn_name = getFQDNOrHostName();
364-
std::uniform_int_distribution<UInt8> get_urand(0, std::numeric_limits<UInt8>::max());
364+
std::uniform_int_distribution<uint8_t> get_urand(0, std::numeric_limits<UInt8>::max());
365365

366366
// Compute the priority
367367
for (const auto & shard_info : cluster_pull->getShardsInfo())

0 commit comments

Comments
 (0)