NULID/README.md
2023-10-29 21:56:08 +00:00

547 B

NULID

This is an implementation of the ULID spec in Nim!

This supports jsony and debby out of the box too!

Random fun fact: I coded the initial code for ULID generation on my phone via Termux!

Compile Flags

-d:nulidInsecureRandom: Uses std/random instead of std/sysrand.

-d:nulidNoLocks: Disables any usage of locks within the program.

Usage

let gen = initUlidGenerator()
let ulid = gen.ulid()

echo ulid