Skip to content

Commit

Permalink
fix bug when convert bin to dec
Browse files Browse the repository at this point in the history
  • Loading branch information
hafael committed Dec 22, 2017
1 parent a32a99e commit 892a897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaraFlake.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function generateID()
/**
* Concatenate the final ID
*/
$final_id = bindec($base . $shard_id . $random_part);
$final_id = bindec($base) . bindec($shard_id) . bindec($random_part);

/**
* Return unique 64bit ID
Expand Down

0 comments on commit 892a897

Please sign in to comment.