snowflake icon indicating copy to clipboard operation
snowflake copied to clipboard

A distributed Snowflake generator in Elixir.

Results 5 snowflake issues
Sort by recently updated
recently updated
newest added

The ID that is finally generated is 64 bits, but the ID generated in the process is time stamp (41 bits) machine ID (12 bits) sequence (12 bits) = 63...

- `Snowflake.t` to represent snowflake ids - `Snowflake.epoch_timestamp` to represent a timestamp in the epoch - `Snowflake.unix_timestamp` classic Unix timestamp

`use Mix.Config` is deprecated and in development causes a warning. This PR replaces it with the new `import Config`

The current usage of `Supervisor` is deprecated, this PR updates it to the new version (and consequently silences the compile time warning in development)

Added the default mix formatter from `mix_new` and ran mix format on the project.