Skip to content

Commit 892a897

Browse files
committed
fix bug when convert bin to dec
1 parent a32a99e commit 892a897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaraFlake.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function generateID()
6060
/**
6161
* Concatenate the final ID
6262
*/
63-
$final_id = bindec($base . $shard_id . $random_part);
63+
$final_id = bindec($base) . bindec($shard_id) . bindec($random_part);
6464

6565
/**
6666
* Return unique 64bit ID

0 commit comments

Comments
 (0)