mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #54576 from HarryLeeIBM/hlee-s390x-rand-gen
Fix UInt256 and IPv4 random data generation on s390x
This commit is contained in:
commit
1bc29696be
@ -352,7 +352,7 @@ ColumnPtr fillColumnWithRandomData(
|
||||
{
|
||||
auto column = ColumnUInt256::create();
|
||||
column->getData().resize(limit);
|
||||
fillBufferWithRandomData(reinterpret_cast<char *>(column->getData().data()), limit, sizeof(UInt256), rng);
|
||||
fillBufferWithRandomData(reinterpret_cast<char *>(column->getData().data()), limit, sizeof(UInt256), rng, true);
|
||||
return column;
|
||||
}
|
||||
case TypeIndex::UUID:
|
||||
@ -511,7 +511,7 @@ ColumnPtr fillColumnWithRandomData(
|
||||
{
|
||||
auto column = ColumnIPv4::create();
|
||||
column->getData().resize(limit);
|
||||
fillBufferWithRandomData(reinterpret_cast<char *>(column->getData().data()), limit, sizeof(IPv4), rng);
|
||||
fillBufferWithRandomData(reinterpret_cast<char *>(column->getData().data()), limit, sizeof(IPv4), rng, true);
|
||||
return column;
|
||||
}
|
||||
case TypeIndex::IPv6:
|
||||
|
Loading…
Reference in New Issue
Block a user