Merge pull request #54576 from HarryLeeIBM/hlee-s390x-rand-gen

Fix UInt256 and IPv4 random data generation on s390x
This commit is contained in:
Kruglov Pavel 2023-09-15 11:42:47 +02:00 committed by GitHub
commit 1bc29696be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: