Appearance
UlidGenerator Class
Definition
Instance ULID generator with frozen options and its own monotonic counter.
- Namespace:
JASE - Assembly:
JASE.IdGenerator.dll
Constructors
| Name | Description |
|---|---|
UlidGenerator() | Creates a generator with default options (fast PRNG). |
UlidGenerator(UlidGeneratorOptions options) | Creates a generator whose options are frozen for the lifetime of the instance. |
Properties
| Name | Description |
|---|---|
UseCsprng | Whether the entropy tail is filled from a CSPRNG. |
Methods
| Name | Description |
|---|---|
Ulid Generate() | Generates a monotonic ULID for the current UTC time. |
Remarks
UlidFactory is the process-wide facade. Construct an instance when two libraries in one process must not share UseCsprng.