This commit is contained in:
Daniil Gentili 2018-03-08 22:20:19 +01:00
parent d4405566ea
commit aa04b5e8af

View File

@ -543,6 +543,7 @@ trait PeerHandler
}
public function gen_participants_hash($ids) {
$hash = 0;
if (\danog\MadelineProto\Logger::$bigint) return $hash;
foreach ($ids as $userID) {
$hash = (($hash * 20261) + 0x80000000 + $userID) % 0x80000000;
}