mdomke / python-ulid

ULID implementation for Python
https://python-ulid.rtfd.io
MIT License
412 stars 19 forks source link

Use time.time_ns() to default-initialize #16

Closed musicinmybrain closed 7 months ago

musicinmybrain commented 9 months ago

Fix #12. The old way was not wrong, but this is indeed tidier.

Adding a new constant NANOSECS_IN_MILLISECS is not required, but seemed to be the best fit for the existing style.