2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-29 15:36:08 +00:00

Improve some paddings.

This commit is contained in:
John Preston
2021-06-24 16:29:48 +04:00
parent 7decf68122
commit a2c33545d4
10 changed files with 7 additions and 43 deletions

View File

@@ -189,9 +189,7 @@ ConnectionPointer AbstractConnection::Create(
}
uint32 AbstractConnection::extendedNotSecurePadding() const {
return requiresExtendedPadding()
? uint32(openssl::RandomValue<uchar>() & 0x3F)
: 0;
return uint32(openssl::RandomValue<uchar>() & 0x3F);
}
} // namespace details