package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jul 24, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Prefixed ID Generator
Basing this distributed ID generator off of MongoDB's ObjectId
The ObjectId consists of the following:
-
A timestamp measured in seconds - 4 bytes
-
A random value generated from a cryptographically random number generator. The value is unique to the machine - 5 bytes
-
An incrementing counter. Initialized to a random value - 2 bytes
Those elements will combine to generate a 11-byte unique ID from which a prefix can be added e.g.
Documentation
¶
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.