Skip to content

UlidFactory Class ​

Definition ​

Process-wide ULID generation. Randomness follows UseCsprng. For isolated options in the same process, construct a UlidGenerator.

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

Methods ​

NameDescription
Ulid Generate()Generates a monotonic ULID for the current UTC time.

Remarks ​

Uses the same CAS timestamp/counter pattern as GenerateV7: the 16-bit per-millisecond counter is placed in the high 16 bits of the ULID randomness field so values remain lexicographically sortable under concurrency.

Generation returns a Ulid struct and does not allocate. Encoding to a string allocates only when callers request a string form.