@@ -1,19 +1,19 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Like the Twitter one. |
|
4 | - * |
|
5 | - * 64 bits: |
|
6 | - * |
|
7 | - * time - 41 bits (millisecond precision w/ a custom epoch gives us 69 years) |
|
8 | - * configured machine id - 10 bits - gives us up to 1024 machines |
|
9 | - * sequence number - 12 bits - rolls over every 4096 per machine (with protection to avoid rollover in the same ms) |
|
10 | - * |
|
11 | - * 32 bits + 9 = 41 bits of time |
|
12 | - * 2199023255552 < milliseconds = 2199023255 seconds |
|
13 | - * 2147483647 < max 31 bit int (signed) |
|
14 | - * |
|
15 | - * @author @davegardnerisme |
|
16 | - */ |
|
3 | + * Like the Twitter one. |
|
4 | + * |
|
5 | + * 64 bits: |
|
6 | + * |
|
7 | + * time - 41 bits (millisecond precision w/ a custom epoch gives us 69 years) |
|
8 | + * configured machine id - 10 bits - gives us up to 1024 machines |
|
9 | + * sequence number - 12 bits - rolls over every 4096 per machine (with protection to avoid rollover in the same ms) |
|
10 | + * |
|
11 | + * 32 bits + 9 = 41 bits of time |
|
12 | + * 2199023255552 < milliseconds = 2199023255 seconds |
|
13 | + * 2147483647 < max 31 bit int (signed) |
|
14 | + * |
|
15 | + * @author @davegardnerisme |
|
16 | + */ |
|
17 | 17 | |
18 | 18 | namespace Gendoria\CruftFlake; |
19 | 19 |