Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Nov 20, 2023
1 parent 7ef7c5e commit 853fa41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MTProto.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public function getDbPrefix(): string
}
$prefix ??= $this->getSelf()['id'] ?? null;
if ($prefix === null) {
$this->tmpDbPrefix ??= 'tmp_'.hash('sha256', $this->getSessionName());
$this->tmpDbPrefix ??= 'tmp_'.hash('xxh3', $this->getSessionName());
$prefix = $this->tmpDbPrefix;
}
return (string) $prefix;
Expand Down

0 comments on commit 853fa41

Please sign in to comment.