NULID/README.md

18 lines
350 B
Markdown
Raw Normal View History

2023-09-02 00:04:47 +00:00
# NULID
This is an implementation of the [ULID](https://github.com/ulid/spec)
spec in Nim!
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`.
2023-09-02 00:04:47 +00:00
## Usage
```nim
let gen = initUlidGenerator()
let ulid = gen.ulid()
2023-09-02 00:04:47 +00:00
echo ulid
2023-09-02 00:04:47 +00:00
```