Skip to content

Commit

Permalink
Update number
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Mar 1, 2018
1 parent 377c780 commit af94352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hashids.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function encode(...$numbers): string
$numbersHashInt = 0;

foreach ($numbers as $i => $number) {
$numbersHashInt += $this->math->intval($this->math->mod((string) $number, ($i + 100)));
$numbersHashInt += $this->math->intval($this->math->mod($number, (string) ($i + 100)));
}

$lottery = $ret = $alphabet[$numbersHashInt % strlen($alphabet)];
Expand Down

0 comments on commit af94352

Please sign in to comment.