Skip to content

UlidGenerator Class ​

Definition ​

Instance ULID generator with frozen options and its own monotonic counter.

  • Namespace: JASE
  • Assembly: JASE.IdGenerator.dll

Constructors ​

NameDescription
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 ​

NameDescription
UseCsprngWhether the entropy tail is filled from a CSPRNG.

Methods ​

NameDescription
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.