A ULID implementation in Nim!
Go to file
2023-11-01 20:05:58 +00:00
.github/workflows Push new workflow, fix tests, edit README 2023-10-27 20:39:47 +01:00
src W.I.P BigInts support, not complete yet 2023-11-01 20:05:58 +00:00
tests W.I.P BigInts support, not complete yet 2023-11-01 20:05:58 +00:00
.gitignore Fixed doc gen 2023-10-07 23:58:33 +01:00
nulid.nimble W.I.P BigInts support, not complete yet 2023-11-01 20:05:58 +00:00
README.md W.I.P BigInts support, not complete yet 2023-11-01 20:05:58 +00:00

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.

The JS backend automatically defines -d:nulidNoLocks while Nimscript defines both of these flags.

Usage

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

echo ulid