Module snow

Module snow 

Source
Expand description

Almost Snowflake

Random IDs which include timestamp information (like Twitter Snowflakes)

IDs are generated with 41 bits of an epoch timestamp, 10 bits of a machine/server ID, and 12 bits of randomly generated numbers.

tttttttttttttttttttttttttttttttttttttttttiiiiiiiiiirrrrrrrrrrrr...
Timestamp                                ID        Seed

Structs§

AlmostSnowflake

Functions§

bigint