Skip to content

Commit

Permalink
Revert "fix: Implicit numeric conversion when generating id in normal…
Browse files Browse the repository at this point in the history
… mode (#21)" (#26)

This reverts commit 1b67ae4.
  • Loading branch information
hidehalo authored Dec 29, 2021
1 parent 1b67ae4 commit a1890e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private function normalRandom($size)
{
$id = '';
while (1 <= $size--) {
$rand = intval(mt_rand()/(mt_getrandmax() + 1));
$rand = mt_rand()/(mt_getrandmax() + 1);
$id .= $this->alphabet[$rand*64 | 0];
}

Expand Down

0 comments on commit a1890e0

Please sign in to comment.